From 547f4ac3ccbb4c2c720dd49415b47109d09a5a4b Mon Sep 17 00:00:00 2001 From: jed Date: Wed, 10 Oct 2012 02:07:13 -0700 Subject: [PATCH] . --- src/Pathfinder.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Pathfinder.cpp b/src/Pathfinder.cpp index 9290f921a..cab078a0a 100644 --- a/src/Pathfinder.cpp +++ b/src/Pathfinder.cpp @@ -77,16 +77,18 @@ PathOption::PathOption(PathOption::pointer other) Pathfinder::Pathfinder(NewcoinAddress& srcAccountID, NewcoinAddress& dstAccountID, uint160& srcCurrencyID, STAmount dstAmount) : - mSrcAccountID(srcAccountID.getAccountID()), mDstAccountID(dstAccountID.getAccountID()), mDstAmount(dstAmount), mSrcCurrencyID(srcCurrencyID), mOrderBook(theApp->getMasterLedger().getCurrentLedger()) + mSrcAccountID(srcAccountID.getAccountID()), mDstAccountID(dstAccountID.getAccountID()), mDstAmount(dstAmount), + mSrcCurrencyID(srcCurrencyID), mOrderBook(theApp->getMasterLedger().getCurrentLedger()) { mLedger=theApp->getMasterLedger().getCurrentLedger(); } bool Pathfinder::findPaths(int maxSearchSteps, int maxPay, STPathSet& retPathSet) { - if(mLedger) { - std::queue pqueue; - STPathElement ele(mSrcAccountID, + if(mLedger) + { + std::queue pqueue; + STPathElement ele(mSrcAccountID, mSrcCurrencyID, uint160()); STPath path;