Fix a crash bug Arthur reported.

This commit is contained in:
JoelKatz
2013-01-15 17:09:57 -08:00
parent c57e28c55b
commit fb3e2e8af4
2 changed files with 11 additions and 2 deletions

View File

@@ -128,6 +128,7 @@ TER LedgerMaster::doTransaction(const SerializedTransaction& txn, TransactionEng
bool LedgerMaster::haveLedgerRange(uint32 from, uint32 to)
{
boost::recursive_mutex::scoped_lock sl(mLock);
uint32 prevMissing = mCompleteLedgers.prevMissing(to + 1);
return (prevMissing == RangeSet::RangeSetAbsent) || (prevMissing < from);
}