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;
}