Insert the coinbase transaction and compute the merkle root of a block.
Synopsis
Declared in <node/miner.h>
void
AddMerkleRootAndCoinbase(
CBlock& block,
CTransactionRef coinbase,
uint32_t version,
uint32_t timestamp,
uint32_t nonce);
Parameters
Name |
Description |
block |
The block to finalize. |
coinbase |
The coinbase transaction to insert. |
version |
The block version to set. |
timestamp |
The block time to set. |
nonce |
The block nonce to set. |
Created with MrDocs