Make version check in UpdateTip() consider auxpow block version
This commit is contained in:
parent
4456764bd3
commit
9e9babb761
|
@ -2059,7 +2059,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)
|
||||
if (pindex->nVersion > CBlock::CURRENT_VERSION && pindex->nVersion != BLOCK_VERSION_AUXPOW)
|
||||
++nUpgraded;
|
||||
pindex = pindex->pprev;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue