Restore checkpointed ledger under all paths in PathFind.

This commit is contained in:
sublimator
2014-06-25 20:16:38 +00:00
committed by Mark Travis
parent d06092212f
commit 828c2e3c71

View File

@@ -2819,6 +2819,13 @@ TER RippleCalc::rippleCalc (
}
else
{
// We must restore the activeLedger from lesCheckpoint in the case
// when iBest is -1 and just before the result is set to tesSUCCESS.
// There was an issue when not on the first increment and there was
// no best path, where we did not restore the ledger to the last
// checkpoint.
activeLedger = lesCheckpoint.duplicate ();
terResult = tesSUCCESS;
}
}