mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-04 19:25:51 +00:00
Restore checkpointed ledger under all paths in PathFind.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user