mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Fix prevMissing/getValidatedRange.
This commit is contained in:
@@ -251,7 +251,7 @@ bool LedgerMaster::getValidatedRange (uint32& minVal, uint32& maxVal)
|
|||||||
minVal = mCompleteLedgers.prevMissing (maxVal);
|
minVal = mCompleteLedgers.prevMissing (maxVal);
|
||||||
|
|
||||||
if (minVal == RangeSet::absent)
|
if (minVal == RangeSet::absent)
|
||||||
minVal = 0;
|
minVal = maxVal;
|
||||||
else
|
else
|
||||||
++minVal;
|
++minVal;
|
||||||
|
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ uint32 RangeSet::prevMissing (uint32 v) const
|
|||||||
if (cur->first > 0)
|
if (cur->first > 0)
|
||||||
result = cur->first - 1;
|
result = cur->first - 1;
|
||||||
else
|
else
|
||||||
result = absent;
|
result = v - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user