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.cpp | |
parent | 3ce829888861a6dc6a29da669584ada961d965fa (diff) |
validation: Make GetWitnessCommitmentIndex public
Diffstat (limited to 'src/validation.cpp')
-rw-r--r-- | src/validation.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index 4caee52424..1e7b9c7e68 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -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()) { |