Skip to content

Commit

Permalink
Fix upgrade warning logic
Browse files Browse the repository at this point in the history
  • Loading branch information
reorder committed Apr 28, 2015
1 parent cf0ae5b commit 1e859cb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2051,8 +2051,7 @@ void static UpdateTip(CBlockIndex *pindexNew) {
const CBlockIndex* pindex = chainActive.Tip();
for (int i = 0; i < 100 && pindex != NULL; i++)
{
if (pindex->nVersion > CBlock::CURRENT_VERSION &&
(pindex->nVersion & ~BLOCK_VERSION_AUXPOW) != (CBlockHeader::CURRENT_VERSION | (AUXPOW_CHAIN_ID * BLOCK_VERSION_CHAIN_START)))
if ((pindex->nVersion & 0xff) > CBlock::CURRENT_VERSION)
++nUpgraded;
pindex = pindex->pprev;
}
Expand Down

0 comments on commit 1e859cb

Please sign in to comment.