mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 14:35:52 +00:00
Small fixes.
This commit is contained in:
@@ -920,7 +920,7 @@ uint256 LedgerEntrySet::getNextLedgerIndex(const uint256& uHash)
|
|||||||
|
|
||||||
// node found in LES, node found in ledger, return earliest
|
// node found in LES, node found in ledger, return earliest
|
||||||
if (it->second.mAction != taaDELETE)
|
if (it->second.mAction != taaDELETE)
|
||||||
return (ledgerNext < it->first) ? ledgerNext : it->first;
|
return (!ledgerNext.isZero() && (ledgerNext < it->first)) ? ledgerNext : it->first;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -885,10 +885,6 @@ TER RippleCalc::calcNodeAdvance(
|
|||||||
|
|
||||||
if (bDirectAdvance)
|
if (bDirectAdvance)
|
||||||
{ // Get next quality.
|
{ // Get next quality.
|
||||||
|
|
||||||
// FIXME: This looks at the original ledger and doesn't take into account any changes
|
|
||||||
// in the LedgerEntrySet. If this code, for example, created offers, this would
|
|
||||||
// not return the pages they're in.
|
|
||||||
uDirectTip = lesActive.getNextLedgerIndex(uDirectTip, uDirectEnd);
|
uDirectTip = lesActive.getNextLedgerIndex(uDirectTip, uDirectEnd);
|
||||||
|
|
||||||
bDirectDirDirty = true;
|
bDirectDirDirty = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user