OrderBookDB::addOrderBook cleanup

This commit is contained in:
David Schwartz
2014-01-03 10:23:03 -08:00
committed by Vinnie Falco
parent 9b61a83721
commit 990fb20a2a

View File

@@ -139,7 +139,7 @@ void OrderBookDB::addOrderBook(const uint160& ci, const uint160& co,
{ // We don't want to search through all the to-XRP or from-XRP order books!
BOOST_FOREACH(OrderBook::ref ob, mSourceMap[RippleAssetRef(ci, ii)])
{
if ((ob->getCurrencyOut() == co) && (ob->getIssuerOut() == io))
if (ob->getCurrencyOut().isZero ()) // also to XRP
return;
}
}