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/bitcoin-chainstate.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/bitcoin-chainstate.cpp')
-rw-r--r-- | src/bitcoin-chainstate.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bitcoin-chainstate.cpp b/src/bitcoin-chainstate.cpp index c1a71ed749..577f398c1a 100644 --- a/src/bitcoin-chainstate.cpp +++ b/src/bitcoin-chainstate.cpp @@ -118,6 +118,7 @@ int main(int argc, char* argv[]) .chainparams = *chainparams, .datadir = abs_datadir, .notifications = *notifications, + .signals = &GetMainSignals(), }; const node::BlockManager::Options blockman_opts{ .chainparams = chainman_opts.chainparams, |