aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2017-01-20 15:08:14 -0500
committerMatt Corallo <git@bluematt.me>2017-10-13 19:29:54 -0400
commita7d3936de8418522dbb161bfef31c234fc6c2503 (patch)
tree7b14bdfffb142c4097a8abee0ccb58c1498f591f /src/init.cpp
parent326a5652e0d25fdb60c337ef4f1c98a63e0748f0 (diff)
downloadbitcoin-a7d3936de8418522dbb161bfef31c234fc6c2503.tar.xz
Add a CValidationInterface::TransactionRemovedFromMempool
This is currently unused, but will by used by wallet to cache when transactions are in the mempool, obviating the need for calls to mempool from CWalletTx::InMempool()
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp
index f63ad7f5d3..499edb374c 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -265,6 +265,7 @@ void Shutdown()
#endif
UnregisterAllValidationInterfaces();
GetMainSignals().UnregisterBackgroundSignalScheduler();
+ GetMainSignals().UnregisterWithMempoolSignals(mempool);
#ifdef ENABLE_WALLET
CloseWallets();
#endif
@@ -1240,6 +1241,7 @@ bool AppInitMain(boost::thread_group& threadGroup, CScheduler& scheduler)
threadGroup.create_thread(boost::bind(&TraceThread<CScheduler::Function>, "scheduler", serviceLoop));
GetMainSignals().RegisterBackgroundSignalScheduler(scheduler);
+ GetMainSignals().RegisterWithMempoolSignals(mempool);
/* Start the RPC server already. It will be started in "warmup" mode
* and not really process calls already (but it will signify connections