Small fixes.

This commit is contained in:
JoelKatz
2013-04-16 11:57:43 -07:00
parent bdf1ed2584
commit 1e09e89c28
2 changed files with 1 additions and 5 deletions

View File

@@ -920,7 +920,7 @@ uint256 LedgerEntrySet::getNextLedgerIndex(const uint256& uHash)
// node found in LES, node found in ledger, return earliest
if (it->second.mAction != taaDELETE)
return (ledgerNext < it->first) ? ledgerNext : it->first;
return (!ledgerNext.isZero() && (ledgerNext < it->first)) ? ledgerNext : it->first;
}

View File

@@ -885,10 +885,6 @@ TER RippleCalc::calcNodeAdvance(
if (bDirectAdvance)
{ // 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);
bDirectDirDirty = true;