btck::Block::Check

Runs the requested consensus checks on the block.

Synopsis

Declared in <kernel/bitcoinkernel_wrapper.h>

bool
Check(
    ConsensusParamsView const& consensus_params,
    BlockCheckFlags flags,
    BlockValidationState& state) const;

Return Value

True when the block passes the requested checks.

Parameters

NameDescription
consensus_paramsThe consensus parameters to check against.
flagsWhich checks to run.
stateReceives the validation result.