Remove mLedger from PathState. It's not used and it's scary (because an LES could amend it).

This commit is contained in:
JoelKatz
2013-04-13 19:17:32 -07:00
parent 1f5d380546
commit 199029b8b5
3 changed files with 8 additions and 11 deletions

View File

@@ -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;