diff options
| author | John Newbery <[email protected]> | 2019-11-11 10:53:03 -0500 |
|---|---|---|
| committer | John Newbery <[email protected]> | 2020-03-11 18:38:33 -0400 |
| commit | e57980b4738c10344baf136de3e050a3cb958ca5 (patch) | |
| tree | 82c05099fba7de2fb55d62147612b2ca6ddcb3c1 /src/txmempool.h | |
| parent | [validation] Remove pool member from ConnectTrace (diff) | |
| download | discoin-e57980b4738c10344baf136de3e050a3cb958ca5.tar.xz discoin-e57980b4738c10344baf136de3e050a3cb958ca5.zip | |
[mempool] Remove NotifyEntryAdded and NotifyEntryRemoved callbacks
NotifyEntryAdded never had any subscribers so can be removed.
Since ConnectTrace no longer subscribes to NotifyEntryRemoved, there are
now no subscribers.
The CValidationInterface TransactionAddedToMempool and
TransactionRemovedFromMempool methods can now provide this
functionality. There's no need for a special notifications framework for
the mempool.
Diffstat (limited to 'src/txmempool.h')
| -rw-r--r-- | src/txmempool.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/txmempool.h b/src/txmempool.h index de11d626b..38a4667b3 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -27,7 +27,6 @@ #include <boost/multi_index/hashed_index.hpp> #include <boost/multi_index/ordered_index.hpp> #include <boost/multi_index/sequenced_index.hpp> -#include <boost/signals2/signal.hpp> class CBlockIndex; extern RecursiveMutex cs_main; @@ -699,9 +698,6 @@ public: size_t DynamicMemoryUsage() const; - boost::signals2::signal<void (CTransactionRef)> NotifyEntryAdded; - boost::signals2::signal<void (CTransactionRef, MemPoolRemovalReason)> NotifyEntryRemoved; - private: /** UpdateForDescendants is used by UpdateTransactionsFromBlock to update * the descendants for a single transaction that has been added to the |