mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Remove mLedger from PathState. It's not used and it's scary (because an LES could amend it).
This commit is contained in:
@@ -2676,7 +2676,7 @@ TER RippleCalc::rippleCalc(
|
||||
// Build a default path. Use saDstAmountReq and saMaxAmountReq to imply nodes.
|
||||
// XXX Might also make a XRP bridge by default.
|
||||
|
||||
PathState::pointer pspDirect = boost::make_shared<PathState>(saDstAmountReq, saMaxAmountReq, lesActive.getLedgerRef());
|
||||
PathState::pointer pspDirect = boost::make_shared<PathState>(saDstAmountReq, saMaxAmountReq);
|
||||
|
||||
if (!pspDirect)
|
||||
return temUNKNOWN;
|
||||
@@ -2706,10 +2706,10 @@ cLog(lsDEBUG) << boost::str(boost::format("rippleCalc: Build direct: status: %s"
|
||||
|
||||
cLog(lsTRACE) << "rippleCalc: Paths in set: " << spsPaths.size();
|
||||
|
||||
int iIndex = 0;
|
||||
int iIndex = 0;
|
||||
BOOST_FOREACH(const STPath& spPath, spsPaths)
|
||||
{
|
||||
PathState::pointer pspExpanded = boost::make_shared<PathState>(saDstAmountReq, saMaxAmountReq, lesActive.getLedgerRef());
|
||||
PathState::pointer pspExpanded = boost::make_shared<PathState>(saDstAmountReq, saMaxAmountReq);
|
||||
|
||||
if (!pspExpanded)
|
||||
return temUNKNOWN;
|
||||
|
||||
Reference in New Issue
Block a user