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:
@@ -214,7 +214,7 @@ TER rippleCalculate (
|
||||
while (resultCode == temUNCERTAIN)
|
||||
{
|
||||
int iBest = -1;
|
||||
const LedgerEntrySet lesCheckpoint = activeLedger;
|
||||
LedgerEntrySet lesCheckpoint = activeLedger;
|
||||
int iDry = 0;
|
||||
|
||||
// True, if ever computed multi-quality.
|
||||
@@ -415,6 +415,10 @@ TER rippleCalculate (
|
||||
}
|
||||
else
|
||||
{
|
||||
// We must restore the activeLedger from lesCheckpoint in the case
|
||||
// when iBest is -1 and just before the result is set to tesSUCCESS.
|
||||
|
||||
activeLedger.swapWith (lesCheckpoint);
|
||||
resultCode = tesSUCCESS;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user