mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fig a bug in the way we traverse TaggedCaches and a similar bug in mPeerPositions.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user