mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Use LES::duplicate function instead of copy/bumpSeq. (It does the same thing.)
This commit is contained in:
@@ -2588,8 +2588,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 variance.
|
||||
lesCurrent = lesCheckpoint.duplicate(); // Restore from checkpoint.
|
||||
|
||||
psrCur->terStatus = calcNodeRev(uLast, *psrCur, bMultiQuality);
|
||||
|
||||
@@ -2598,8 +2597,7 @@ void RippleCalc::pathNext(PathState::ref psrCur, const bool bMultiQuality, const
|
||||
if (tesSUCCESS == psrCur->terStatus)
|
||||
{
|
||||
// Do forward.
|
||||
lesCurrent = lesCheckpoint; // Restore from checkpoint.
|
||||
lesCurrent.bumpSeq(); // Begin ledger variance.
|
||||
lesCurrent = lesCheckpoint.duplicate(); // Restore from checkpoint.
|
||||
|
||||
psrCur->terStatus = calcNodeFwd(0, *psrCur, bMultiQuality);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user