diff options
author | TheCharlatan <seb.kung@gmail.com> | 2024-01-24 10:28:55 +0100 |
---|---|---|
committer | TheCharlatan <seb.kung@gmail.com> | 2024-02-15 13:28:45 +0100 |
commit | 3fba3d5deec6d7bae33823b8da7682f9b03d9deb (patch) | |
tree | da08b52bcd7612ee35a09335c2fec89d8795786a /src/test/util/setup_common.cpp | |
parent | 7143d4388407ab3d12005e55a02d5e8f334e4dc9 (diff) |
[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/test/util/setup_common.cpp')
-rw-r--r-- | src/test/util/setup_common.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/util/setup_common.cpp b/src/test/util/setup_common.cpp index 9f587d7ec0..b9c2659221 100644 --- a/src/test/util/setup_common.cpp +++ b/src/test/util/setup_common.cpp @@ -185,6 +185,7 @@ ChainTestingSetup::ChainTestingSetup(const ChainType chainType, const std::vecto .datadir = m_args.GetDataDirNet(), .check_block_index = true, .notifications = *m_node.notifications, + .signals = &GetMainSignals(), .worker_threads_num = 2, }; const BlockManager::Options blockman_opts{ |