Don't recompute the OrderBookDB too many times more than needed.

This commit is contained in:
JoelKatz
2013-02-13 09:31:52 -08:00
parent ef82b050ed
commit ef3dd3ca77
5 changed files with 30 additions and 7 deletions

View File

@@ -35,9 +35,13 @@ class OrderBookDB
std::map<uint256, bool > mKnownMap;
uint32 mSeq;
boost::recursive_mutex mLock;
public:
OrderBookDB();
void setup(Ledger::ref ledger);
void invalidate();
// return list of all orderbooks that want XRP
std::vector<OrderBook::pointer>& getXRPInBooks(){ return mXRPOrders; }