mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
OrderBookDB::addOrderBook cleanup
This commit is contained in:
committed by
Vinnie Falco
parent
9b61a83721
commit
990fb20a2a
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user