Compute at which vout of the block's coinbase transaction the witness commitment occurs, or ‐1 if not found

Synopsis

Declared in <consensus/validation.h>

int
GetWitnessCommitmentIndex(CBlock const& block);

Return Value

The output index of the witness commitment, or NO_WITNESS_COMMITMENT (‐1) if none is present.

Parameters

Name

Description

block

The block whose coinbase outputs are scanned.

Created with MrDocs