mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 14:05:51 +00:00
Fix a crash bug Arthur reported.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user