mirror of
https://github.com/bitcoin/bips.git
synced 2025-03-13 11:09:16 +01:00
Update code sample
This commit is contained in:
parent
90ff1ed214
commit
cc67ae995c
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue