[#ChainstateManager-GenerateCoinbaseCommitment] = xref:ChainstateManager.adoc[ChainstateManager]::GenerateCoinbaseCommitment :relfileprefix: ../ :mrdocs: Produce the necessary coinbase commitment for a block (modifies the hash, don't call for mined blocks). == Synopsis Declared in `<validation.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void GenerateCoinbaseCommitment( xref:CBlock.adoc[CBlock]& block, xref:CBlockIndex.adoc[CBlockIndex] const* pindexPrev) const; ---- == Parameters [cols="1,4"] |=== | Name| Description | *block* | The block whose coinbase commitment is generated. | *pindexPrev* | Block index entry of the parent block. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#