Avoid an extraneous dispatch to the same context we're already in.

Get rid of stored proposals in a more sane way.
This commit is contained in:
JoelKatz
2013-06-13 23:38:21 -07:00
parent a349b9bcd0
commit 968768cdb8
2 changed files with 3 additions and 5 deletions

View File

@@ -1043,6 +1043,8 @@ void LedgerConsensus::accept(SHAMap::ref set, LoadEvent::pointer)
boost::recursive_mutex::scoped_lock masterLock(theApp->getMasterLock());
assert(set->getHash() == mOurPosition->getCurrentHash());
theApp->getOPs().peekStoredProposals().clear(); // these are now obsolete
uint32 closeTime = roundCloseTime(mOurPosition->getCloseTime());
bool closeTimeCorrect = true;
if (closeTime == 0)