Make version check in UpdateTip() consider auxpow block version

This commit is contained in:
Patrick Lodder 2014-08-01 22:21:02 +02:00
parent 4456764bd3
commit 9e9babb761

View file

@ -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;
}