Really fix KillOrFill.

This commit is contained in:
Arthur Britto
2013-03-07 17:41:45 -08:00
parent 15942616e8
commit f8799a6558
2 changed files with 24 additions and 20 deletions

View File

@@ -957,7 +957,7 @@ TER RippleCalc::calcNodeAdvance(
// An internal error previously left a bad offer.
cLog(lsWARNING) << boost::str(boost::format("calcNodeAdvance: INTERNAL ERROR: OFFER NON-POSITIVE: saTakerPays=%s saTakerGets=%s")
% saTakerPays % saTakerGets);
assert(false);
//assert(false);
// Don't process at all, things are in an unexpected state for this transactions.
terResult = tefEXCEPTION;
}
@@ -2471,7 +2471,7 @@ void RippleCalc::pathNext(PathState::ref psrCur, const bool bMultiQuality, const
assert(psrCur->vpnNodes.size() >= 2);
lesCurrent = lesCheckpoint; // Restore from checkpoint.
lesCurrent.bumpSeq(); // Begin ledger varance.
lesCurrent.bumpSeq(); // Begin ledger variance.
psrCur->terStatus = calcNodeRev(uLast, *psrCur, bMultiQuality);
@@ -2481,7 +2481,7 @@ void RippleCalc::pathNext(PathState::ref psrCur, const bool bMultiQuality, const
{
// Do forward.
lesCurrent = lesCheckpoint; // Restore from checkpoint.
lesCurrent.bumpSeq(); // Begin ledger varance.
lesCurrent.bumpSeq(); // Begin ledger variance.
psrCur->terStatus = calcNodeFwd(0, *psrCur, bMultiQuality);
}