[#IsBlockMutated]
= IsBlockMutated
:mrdocs:

Check if a block has been mutated (with respect to its merkle root and witness commitments)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
IsBlockMutated(
    xref:CBlock.adoc[CBlock] const& block,
    bool check&lowbar;witness&lowbar;root);
----

== Return Value

true if the block is mutated&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *block*
| The block to inspect for mutation&period;
| *check&lowbar;witness&lowbar;root*
| Whether to also check the witness commitment&period;
|===


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