Reset liquidity before retrying rippleCalc

This commit is contained in:
David Schwartz
2014-01-03 10:53:42 -08:00
committed by Vinnie Falco
parent 750cbb8399
commit e3a67b13ff

View File

@@ -1690,6 +1690,7 @@ Json::Value RPCHandler::doRipplePathFind (Json::Value params, Resource::Charge&
WriteLog (lsDEBUG, PathRequest) << "Trying with an extra path element";
spsComputed.addPath(extraPath);
vpsExpanded.clear ();
lesSandbox.clear ();
terResult = RippleCalc::rippleCalc (lesSandbox, saMaxAmountAct, saDstAmountAct,
vpsExpanded, saMaxAmount, saDstAmount,
raDst.getAccountID (), raSrc.getAccountID (),