aboutsummaryrefslogtreecommitdiff
path: root/src/txmempool.h
diff options
context:
space:
mode:
authorTheCharlatan <seb.kung@gmail.com>2024-01-24 10:28:55 +0100
committerTheCharlatan <seb.kung@gmail.com>2024-02-15 13:28:45 +0100
commit3fba3d5deec6d7bae33823b8da7682f9b03d9deb (patch)
treeda08b52bcd7612ee35a09335c2fec89d8795786a /src/txmempool.h
parent7143d4388407ab3d12005e55a02d5e8f334e4dc9 (diff)
downloadbitcoin-3fba3d5deec6d7bae33823b8da7682f9b03d9deb.tar.xz
[refactor] Make signals optional in mempool and chainman
This is done in preparation for the next two commits, where the CMainSignals are de-globalized. This avoids adding new constructor arguments to the ChainstateManager and CTxMemPool classes over the next two commits. This could also allow future tests that are only interested in the internal behaviour of the classes to forgo instantiating the signals.
Diffstat (limited to 'src/txmempool.h')
-rw-r--r--src/txmempool.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/txmempool.h b/src/txmempool.h
index b98355c65f..5e0f22229b 100644
--- a/src/txmempool.h
+++ b/src/txmempool.h
@@ -40,6 +40,7 @@
#include <vector>
class CChain;
+class CMainSignals;
/** Fake height value used in Coin to signify they are only in the memory pool (since 0.8) */
static const uint32_t MEMPOOL_HEIGHT = 0x7FFFFFFF;
@@ -447,6 +448,8 @@ public:
const Limits m_limits;
+ CMainSignals* const m_signals;
+
/** Create a new CTxMemPool.
* Sanity checks will be off by default for performance, because otherwise
* accepting transactions becomes O(N^2) where N is the number of transactions