validation: Make GetWitnessCommitmentIndex public

This commit is contained in:
MarcoFalke
2019-09-24 11:18:17 -04:00
parent 3ce8298888
commit fa607c2292
2 changed files with 4 additions and 3 deletions

View File

@@ -3280,9 +3280,7 @@ bool IsWitnessEnabled(const CBlockIndex* pindexPrev, const Consensus::Params& pa
return (height >= params.SegwitHeight);
}
// Compute at which vout of the block's coinbase transaction the witness
// commitment occurs, or -1 if not found.
static int GetWitnessCommitmentIndex(const CBlock& block)
int GetWitnessCommitmentIndex(const CBlock& block)
{
int commitpos = -1;
if (!block.vtx.empty()) {