Skip to content

Commit 851a099

Browse files
author
limxdev
committed
Update validation.cpp
1 parent c60cf0e commit 851a099

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/validation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3585,7 +3585,7 @@ static bool ContextualCheckBlock(const CBlock& block, CValidationState& state, c
35853585
// {0xaa, 0x21, 0xa9, 0xed}, and the following 32 bytes are SHA256^2(witness root, witness reserved value). In case there are
35863586
// multiple, the last one is used.
35873587
bool fHaveWitness = false;
3588-
if (VersionBitsState(pindexPrev, consensusParams, Consensus::DEPLOYMENT_SEGWIT, versionbitscache) == ThresholdState::ACTIVE) {
3588+
//if (VersionBitsState(pindexPrev, consensusParams, Consensus::DEPLOYMENT_SEGWIT, versionbitscache) == ThresholdState::ACTIVE) {
35893589
int commitpos = GetWitnessCommitmentIndex(block);
35903590
if (commitpos != -1) {
35913591
bool malleated = false;
@@ -3604,7 +3604,7 @@ static bool ContextualCheckBlock(const CBlock& block, CValidationState& state, c
36043604
fHaveWitness = true;
36053605
}
36063606
}
3607-
}
3607+
//}
36083608

36093609
// No witness data is allowed in blocks that don't commit to witness data, as this would otherwise leave room for spam
36103610
if(nHeight > 25000) {

0 commit comments

Comments
 (0)