diff options
| author | Wladimir J. van der Laan <[email protected]> | 2016-07-28 09:50:46 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2016-07-28 09:51:04 +0200 |
| commit | 64d660a43fb8ced837b313791b7cddd27b1e7761 (patch) | |
| tree | 8022e555f140905397ac9817924827ae4bc0327d /src/main.cpp | |
| parent | Merge #8414: prepend license statement to indirectmap.h (diff) | |
| parent | Trivial: Segwit: Don't call IsWitnessEnabled from ContextualCheckBlock (diff) | |
| download | discoin-64d660a43fb8ced837b313791b7cddd27b1e7761.tar.xz discoin-64d660a43fb8ced837b313791b7cddd27b1e7761.zip | |
Merge #8348: Trivial: Segwit: Don't call IsWitnessEnabled from ContextualCheckBlock
38c4c8b Trivial: Segwit: Don't call IsWitnessEnabled from ContextualCheckBlock (Jorge Timón)
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 052b73932..8dd703b68 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3567,7 +3567,7 @@ bool ContextualCheckBlock(const CBlock& block, CValidationState& state, const CB // {0xaa, 0x21, 0xa9, 0xed}, and the following 32 bytes are SHA256^2(witness root, witness nonce). In case there are // multiple, the last one is used. bool fHaveWitness = false; - if (IsWitnessEnabled(pindexPrev, consensusParams)) { + if (VersionBitsState(pindexPrev, consensusParams, Consensus::DEPLOYMENT_SEGWIT, versionbitscache) == THRESHOLD_ACTIVE) { int commitpos = GetWitnessCommitmentIndex(block); if (commitpos != -1) { bool malleated = false; |