How big should be “nonce” be in a blockchain?

How big should be “nonce” be in a blockchain?

I am attempting to create my own blockchain, in order to understand how they work. I wanted to know how big the nonce should be (e.g. 8 digits or something like that). I am using a PoW (proof-of-work) algorithm in my blockchain. This blockchain uses the SHA256 hashing algorithm.

I am attempting to create my own blockchain, in order to understand how they work. I wanted to know how big the nonce should be (e.g. 8 digits or something like that). I am using a PoW (proof-of-work) algorithm in my blockchain. This blockchain uses the SHA256 hashing algorithm.

I am using the C programming language in order to implement this blockchain.

Here is what the block looks like in code:

struct Block
{
    /*Block structure*/
    char* hash;
    char* prev_hash;
    char* from;
    char* to;
    long long int nonce;
    double amount;
    time_t timestamp;
};

Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

C/C++ vs. Rust: A developer’s perspective

In this post, you'll see the difference between Rust and C/C++ in a developer’s perspective

Variable Introduction in C#[Bangla]

LIKE | COMMENT | SHARE | SUBSCRIBE A variable is nothing but a name given to a storage area that our programs can manipulate. Each variable in C# has a speci...