candidate block
Other
Full explanation
In short, a candidate block is a block that mining nodes (miners) attempt to mine in order to earn the block reward. Thus, a candidate block can be viewed as a provisional block—awaiting network validation or rejection. Miners compete with one another to validate the next block and add it to the blockchain. However, before participating in this mining competition, miners must first construct a candidate block.
A candidate block is created by a miner who collects and organizes multiple unconfirmed transactions from the mempool. These transactions are then hashed to form a Merkle tree structure, ultimately producing a Merkle root (also called the "root hash"). The Merkle root is a single hash value representing all previous hash values in the Merkle tree.
The root hash is then placed into the block header along with the hash of the previous block and a random number called a nonce. The miner then hashes the block header; this process takes the root hash, the previous block’s hash, the nonce, and several other elements as inputs and produces an output. This output is the block hash—the unique identifier of the newly generated block (candidate block).
For the output (block hash) to be valid, it must begin with a specific number of leading zeros—i.e., be less than a target value defined by the protocol. This means mining nodes must repeatedly execute the hashing function with different nonces until they eventually produce a valid block hash. Mining is therefore an iterative trial-and-error process. The resulting block hash serves as proof that the miner has performed the required computational work—hence the term "Proof of Work".
Once a miner finds a valid block hash, their candidate block is broadcast to the rest of the network’s nodes, which can then verify the hash’s validity. If everything checks out, the candidate block is subsequently recorded on the blockchain. Each validating node thus updates its local copy of the blockchain to reflect the newly mined block, and the miner receives the block reward.
Source: Binance Academy
Last updated:
