Fig a bug in the way we traverse TaggedCaches and a similar bug in mPeerPositions.

This commit is contained in:
JoelKatz
2013-02-25 20:28:20 -08:00
parent 923446fb78
commit 7b14d2d44a
2 changed files with 3 additions and 3 deletions

View File

@@ -728,7 +728,7 @@ void LedgerConsensus::updateOurPositions()
cLog(lsWARNING) << "Removing stale proposal from " << peerID;
BOOST_FOREACH(u256_lct_pair& it, mDisputes)
it.second->unVote(peerID);
mPeerPositions.erase(it++);
it = mPeerPositions.erase(it);
}
else
{ // proposal is still fresh