20 #ifndef RIPPLE_APP_LEDGER_ORDERBOOKDB_H_INCLUDED
21 #define RIPPLE_APP_LEDGER_ORDERBOOKDB_H_INCLUDED
23 #include <ripple/app/ledger/AcceptedLedgerTx.h>
24 #include <ripple/app/ledger/BookListeners.h>
25 #include <ripple/app/main/Application.h>
A currency issued by an account.
std::recursive_mutex mLock
std::atomic< std::uint32_t > seq_
void update(std::shared_ptr< ReadView const > const &ledger)
hash_set< Issue > xrpBooks_
bool isBookToXRP(Issue const &)
int getBookSize(Issue const &)
void processTxn(std::shared_ptr< ReadView const > const &ledger, const AcceptedLedgerTx &alTx, Json::Value const &jvObj)
A transaction that is in a closed ledger.
void setup(std::shared_ptr< ReadView const > const &ledger)
A generic endpoint for log messages.
BookListeners::pointer makeBookListeners(Book const &)
hardened_hash_map< Issue, hardened_hash_set< Issue > > allBooks_
BookToListenersMap mListeners
BookListeners::pointer getBookListeners(Book const &)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
OrderBookDB(Application &app)
std::vector< Book > getBooksByTakerPays(Issue const &)
void addOrderBook(Book const &)