Skip to content

Commit 693a9a5

Browse files
authored
Merge pull request bitcoin#505 from shaolinfry/patch-1
Update code sample
2 parents 90ff1ed + cc67ae9 commit 693a9a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bip-0148.mediawiki

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ While this BIP is active, all blocks must set the nVersion header top 3 bits to
3939
<pre>
4040
// mandatory segwit activation between Oct 1st 2017 and Nov 15th 2017 inclusive
4141
if (pindex->GetMedianTimePast() >= 1506816000 && pindex->GetMedianTimePast() <= 1510704000 && !IsWitnessEnabled(pindex->pprev, chainparams.GetConsensus())) {
42-
if (!((pindex->nVersion & VERSIONBITS_TOP_MASK) == VERSIONBITS_TOP_BITS) && (pindex->nVersion & VersionBitsMask(params, Consensus::DEPLOYMENT_SEGWIT)) != 0) {
42+
if (!((pindex->nVersion & VERSIONBITS_TOP_MASK) == VERSIONBITS_TOP_BITS) && (pindex->nVersion & VersionBitsMask(chainparams.GetConsensus(), Consensus::DEPLOYMENT_SEGWIT)) != 0) {
4343
return state.DoS(0, error("ConnectBlock(): relayed block must signal for segwit, please upgrade"), REJECT_INVALID, "bad-no-segwit");
4444
}
4545
}

0 commit comments

Comments
 (0)