Skip to content

Commit

Permalink
Fix merged mining error:
Browse files Browse the repository at this point in the history
Warning: This version is obsolete, update required!
  • Loading branch information
Rikski committed Mar 16, 2015
1 parent 8fbadbe commit d267ad8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.cpp
Expand Up @@ -2217,7 +2217,9 @@ bool SetBestChain(CValidationState &state, CBlockIndex* pindexNew)
const CBlockIndex* pindex = pindexBest;
for (int i = 0; i < 100 && pindex != NULL; i++)
{
if (pindex->nVersion > CBlock::CURRENT_VERSION)
// high bits of the block version are used to indicate
// merged mining information
if ((pindex->nVersion&0xff) > CBlock::CURRENT_VERSION)
++nUpgraded;
pindex = pindex->pprev;
}
Expand Down

0 comments on commit d267ad8

Please sign in to comment.