Skip to content

Commit

Permalink
Fix merge errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
btcdrak committed Apr 15, 2015
1 parent b5839b9 commit 5bbf08f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1823,7 +1823,7 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin
}

// Start enforcing the DERSIG (BIP66) rules, for block.nVersion=4 blocks, when 75% of the network has upgraded:
if ((block.nVersion >= 4 & 0xff) && CBlockIndex::IsSuperMajority(4, pindex->pprev, Params().EnforceBlockUpgradeMajority())
if ((block.nVersion & 0xff) >= 4 && CBlockIndex::IsSuperMajority(4, pindex->pprev, Params().EnforceBlockUpgradeMajority())
&& pindex->nHeight >= Params().BIP66MinStartBlock()) {
flags |= SCRIPT_VERIFY_DERSIG;
}
Expand Down Expand Up @@ -2730,7 +2730,7 @@ bool ContextualCheckBlockHeader(const CBlockHeader& block, CValidationState& sta
}

// Reject block.nVersion=3 blocks when 95% (75% on testnet) of the network has upgraded:
if ((block.nVersion < 4 & 0xff) && CBlockIndex::IsSuperMajority(4, pindexPrev, Params().RejectBlockOutdatedMajority())
if ((block.nVersion & 0xff) < 4 && CBlockIndex::IsSuperMajority(4, pindexPrev, Params().RejectBlockOutdatedMajority())
&& block.nVersion >= Params().BIP66MinStartBlock())
{
return state.Invalid(error("%s : rejected nVersion=3 block", __func__),
Expand Down

0 comments on commit 5bbf08f

Please sign in to comment.