IsBlockMutated

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

Synopsis

Declared in <validation.h>

bool
IsBlockMutated(
    CBlock const& block,
    bool check_witness_root);

Return Value

true if the block is mutated.

Parameters

NameDescription
blockThe block to inspect for mutation.
check_witness_rootWhether to also check the witness commitment.