Include XRP in usAccountSourceCurrencies so that it can't get included twice.

This commit is contained in:
JoelKatz
2013-04-09 00:43:22 -07:00
parent 228a3b5a67
commit 8c3d04caff
3 changed files with 9 additions and 7 deletions

View File

@@ -1215,11 +1215,7 @@ Json::Value RPCHandler::doRipplePathFind(Json::Value jvRequest, int& cost)
}
else
{
boost::unordered_set<uint160> usCurrencies = usAccountSourceCurrencies(raSrc, lpLedger);
// Add XRP as a source currency.
// YYY Only bother if they are above reserve.
usCurrencies.insert(uint160(CURRENCY_XRP));
boost::unordered_set<uint160> usCurrencies = usAccountSourceCurrencies(raSrc, lpLedger, true);
jvSrcCurrencies = Json::Value(Json::arrayValue);