[#node-RegenerateCommitments]
= xref:node.adoc[node]::RegenerateCommitments
:relfileprefix: ../
:mrdocs:

Update an old GenerateCoinbaseCommitment from CreateNewBlock after the block txs have changed

== Synopsis

Declared in `&lt;node&sol;miner&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
RegenerateCommitments(
    xref:CBlock.adoc[CBlock]& block,
    xref:ChainstateManager.adoc[ChainstateManager]& chainman);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *block*
| The block whose witness commitment is regenerated&period;
| *chainman*
| The chainstate manager used for context&period;
|===


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