[#ChainstateManager-GenerateCoinbaseCommitment]
= xref:ChainstateManager.adoc[ChainstateManager]::GenerateCoinbaseCommitment
:relfileprefix: ../
:mrdocs:

Produce the necessary coinbase commitment for a block (modifies the hash, don&apos;t call for mined blocks)&period;

== Synopsis

Declared in `&lt;validation&period;h&gt;`

[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&period;
| *pindexPrev*
| Block index entry of the parent block&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
