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

@@ -88,7 +88,7 @@ bool Pathfinder::bDefaultPath(const STPath& spPath)
return false; // Didn't generate a default path. So can't match.
}
PathState::pointer pspCurrent = boost::make_shared<PathState>(mDstAmount, mSrcAmount, mLedger);
PathState::pointer pspCurrent = boost::make_shared<PathState>(mDstAmount, mSrcAmount);
if (pspCurrent)
{
@@ -163,7 +163,7 @@ Pathfinder::Pathfinder(Ledger::ref ledger,
// Construct the default path for later comparison.
PathState::pointer psDefault = boost::make_shared<PathState>(mDstAmount, mSrcAmount, mLedger);
PathState::pointer psDefault = boost::make_shared<PathState>(mDstAmount, mSrcAmount);
if (psDefault)
{