[#GetWitnessCommitmentIndex] = GetWitnessCommitmentIndex :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int GetWitnessCommitmentIndex(xref:CBlock.adoc[CBlock] const& block); ---- == Return Value The output index of the witness commitment, or NO_WITNESS_COMMITMENT (‐1) if none is present. == Parameters [cols="1,4"] |=== | Name| Description | *block* | The block whose coinbase outputs are scanned. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#