Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.h
Show All 12 Lines | |||||
#include <primitives/transaction.h> | #include <primitives/transaction.h> | ||||
#include <salteduint256hasher.h> | #include <salteduint256hasher.h> | ||||
#include <sync.h> | #include <sync.h> | ||||
#include <boost/multi_index/hashed_index.hpp> | #include <boost/multi_index/hashed_index.hpp> | ||||
#include <boost/multi_index/ordered_index.hpp> | #include <boost/multi_index/ordered_index.hpp> | ||||
#include <boost/multi_index/sequenced_index.hpp> | #include <boost/multi_index/sequenced_index.hpp> | ||||
#include <boost/multi_index_container.hpp> | #include <boost/multi_index_container.hpp> | ||||
#include <boost/signals2/signal.hpp> | |||||
#include <atomic> | #include <atomic> | ||||
#include <map> | #include <map> | ||||
#include <set> | #include <set> | ||||
#include <string> | #include <string> | ||||
#include <utility> | #include <utility> | ||||
#include <vector> | #include <vector> | ||||
▲ Show 20 Lines • Show All 743 Lines • ▼ Show 20 Lines | public: | ||||
CTransactionRef get(const TxId &txid) const; | CTransactionRef get(const TxId &txid) const; | ||||
TxMempoolInfo info(const TxId &txid) const; | TxMempoolInfo info(const TxId &txid) const; | ||||
std::vector<TxMempoolInfo> infoAll() const; | std::vector<TxMempoolInfo> infoAll() const; | ||||
CFeeRate estimateFee() const; | CFeeRate estimateFee() const; | ||||
size_t DynamicMemoryUsage() const; | size_t DynamicMemoryUsage() const; | ||||
boost::signals2::signal<void(CTransactionRef)> NotifyEntryAdded; | |||||
boost::signals2::signal<void(CTransactionRef, MemPoolRemovalReason)> | |||||
NotifyEntryRemoved; | |||||
private: | private: | ||||
/** | /** | ||||
* UpdateForDescendants is used by UpdateTransactionsFromBlock to update the | * UpdateForDescendants is used by UpdateTransactionsFromBlock to update the | ||||
* descendants for a single transaction that has been added to the mempool | * descendants for a single transaction that has been added to the mempool | ||||
* but may have child transactions in the mempool, eg during a chain reorg. | * but may have child transactions in the mempool, eg during a chain reorg. | ||||
* setExclude is the set of descendant transactions in the mempool that must | * setExclude is the set of descendant transactions in the mempool that must | ||||
* not be accounted for (because any descendants in setExclude were added to | * not be accounted for (because any descendants in setExclude were added to | ||||
* the mempool after the transaction being updated and hence their state is | * the mempool after the transaction being updated and hence their state is | ||||
▲ Show 20 Lines • Show All 239 Lines • Show Last 20 Lines |