diff options
author | MarcoFalke <falke.marco@gmail.com> | 2019-09-24 11:18:17 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2019-09-24 11:16:05 -0400 |
commit | fa607c229295e0f0b89d5177b94d3381ab5e37d8 (patch) | |
tree | 021b986593e57adbd04a752cfeb94aabf17c7acf /src/validation.h | |
parent | 3ce829888861a6dc6a29da669584ada961d965fa (diff) |
validation: Make GetWitnessCommitmentIndex public
Diffstat (limited to 'src/validation.h')
-rw-r--r-- | src/validation.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/validation.h b/src/validation.h index 615b83f028..96d249b6d3 100644 --- a/src/validation.h +++ b/src/validation.h @@ -384,6 +384,9 @@ bool IsWitnessEnabled(const CBlockIndex* pindexPrev, const Consensus::Params& pa /** When there are blocks in the active chain with missing data, rewind the chainstate and remove them from the block index */ bool RewindBlockIndex(const CChainParams& params) LOCKS_EXCLUDED(cs_main); +/** Compute at which vout of the block's coinbase transaction the witness commitment occurs, or -1 if not found */ +int GetWitnessCommitmentIndex(const CBlock& block); + /** Update uncommitted block structures (currently: only the witness reserved value). This is safe for submitted blocks. */ void UpdateUncommittedBlockStructures(CBlock& block, const CBlockIndex* pindexPrev, const Consensus::Params& consensusParams); |