diff --git a/src/main.cpp b/src/main.cpp index e9c50b8be..e7af30c37 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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; }