Small fix.

This commit is contained in:
JoelKatz
2013-04-16 11:57:02 -07:00
parent 09e4f6a4fe
commit 71c15310d9

View File

@@ -909,7 +909,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;
}