aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 88bfbcff0..9f9e47e78 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -29,6 +29,8 @@
#include <policy/feerate.h>
#include <policy/fees.h>
#include <policy/policy.h>
+#include <rpc/auxpow_miner.h>
+#include <rpc/mining.h>
#include <rpc/server.h>
#include <rpc/register.h>
#include <rpc/blockchain.h>
@@ -211,6 +213,10 @@ void Shutdown()
if (g_connman) g_connman->Stop();
if (g_txindex) g_txindex->Stop();
+ if (g_auxpow_miner != nullptr) {
+ g_auxpow_miner.reset();
+ }
+
StopTorControl();
// After everything has been shut down, but before things get flushed, stop the
@@ -1281,6 +1287,8 @@ bool AppInitMain()
RegisterZMQRPCCommands(tableRPC);
#endif
+ g_auxpow_miner.reset(new AuxpowMiner());
+
/* Start the RPC server already. It will be started in "warmup" mode
* and not really process calls already (but it will signify connections
* that the server is there and will be ready later). Warmup mode will