summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Dashjr <luke_github1@dashjr.org>2017-03-25 04:18:17 +0000
committerGitHub <noreply@github.com>2017-03-25 04:18:17 +0000
commit693a9a5213f8ff7e98046312d34d6bda0d49ae24 (patch)
tree689fb3153434116a1d895c66fbbff4c76c79ae6e
parent90ff1ed2143433edeb4743316e268b435f08dc1e (diff)
parentcc67ae995c4df0b0e1040c34f8f68848954de35a (diff)
downloadbips-693a9a5213f8ff7e98046312d34d6bda0d49ae24.tar.xz
Merge pull request #505 from shaolinfry/patch-1
Update code sample
-rw-r--r--bip-0148.mediawiki2
1 files changed, 1 insertions, 1 deletions
diff --git a/bip-0148.mediawiki b/bip-0148.mediawiki
index 601682c..767c084 100644
--- a/bip-0148.mediawiki
+++ b/bip-0148.mediawiki
@@ -39,7 +39,7 @@ While this BIP is active, all blocks must set the nVersion header top 3 bits to
<pre>
// mandatory segwit activation between Oct 1st 2017 and Nov 15th 2017 inclusive
if (pindex->GetMedianTimePast() >= 1506816000 && pindex->GetMedianTimePast() <= 1510704000 && !IsWitnessEnabled(pindex->pprev, chainparams.GetConsensus())) {
- if (!((pindex->nVersion & VERSIONBITS_TOP_MASK) == VERSIONBITS_TOP_BITS) && (pindex->nVersion & VersionBitsMask(params, Consensus::DEPLOYMENT_SEGWIT)) != 0) {
+ if (!((pindex->nVersion & VERSIONBITS_TOP_MASK) == VERSIONBITS_TOP_BITS) && (pindex->nVersion & VersionBitsMask(chainparams.GetConsensus(), Consensus::DEPLOYMENT_SEGWIT)) != 0) {
return state.DoS(0, error("ConnectBlock(): relayed block must signal for segwit, please upgrade"), REJECT_INVALID, "bad-no-segwit");
}
}