ChainstateManager::GenerateCoinbaseCommitment

Produce the necessary coinbase commitment for a block (modifies the hash, don't call for mined blocks).

Synopsis

Declared in <validation.h>

void
GenerateCoinbaseCommitment(
    CBlock& block,
    CBlockIndex const* pindexPrev) const;

Parameters

NameDescription
blockThe block whose coinbase commitment is generated.
pindexPrevBlock index entry of the parent block.