// relay the checkpoint
if (!checkpointMessage.IsNull())
{
- BOOST_FOREACH(CNode* pnode, vNodes)
- checkpointMessage.RelayTo(pnode);
+ for (std::vector<CNode*>::iterator it = vNodes.begin(); it != vNodes.end(); ++it)
+ checkpointMessage.RelayTo(*it);
}
return true;
}
// Relay checkpoint
{
LOCK(cs_vNodes);
- BOOST_FOREACH(CNode* pnode, vNodes)
- checkpoint.RelayTo(pnode);
+ for (std::vector<CNode*>::iterator it = vNodes.begin(); it != vNodes.end(); ++it)
+ checkpoint.RelayTo(*it);
}
return true;
}
}
// Connect further blocks
- BOOST_REVERSE_FOREACH(CBlockIndex *pindex, vpindexSecondary)
+ for (std::vector<CBlockIndex*>::reverse_iterator rit = vpindexSecondary.rbegin(); rit != vpindexSecondary.rend(); ++rit)
{
CBlock block;
- if (!block.ReadFromDisk(pindex))
+ if (!block.ReadFromDisk(*rit))
{
printf("SetBestChain() : ReadFromDisk failed\n");
break;
break;
}
// errors now are not fatal, we still did a reorganisation to a new chain in a valid way
- if (!block.SetBestChainInner(txdb, pindex))
+ if (!block.SetBestChainInner(txdb, *rit))
break;
}
}