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

Name

Description

block

The block to inspect for mutation.

check_witness_root

Whether to also check the witness commitment.

Created with MrDocs