aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorMax K <[email protected]>2019-07-14 19:35:30 +0200
committerGitHub <[email protected]>2019-07-14 19:35:30 +0200
commitcee13699a5676355487f8eb2d91985f63438eae4 (patch)
treecf12be6180f950a25ee2ee7f3f2126542835d6e3 /src/init.cpp
parentCorrect build and test net seed (diff)
parentHandle legacy v2 block at #66064 (diff)
downloaddiscoin-1.17-dev.tar.xz
discoin-1.17-dev.zip
Merge pull request #1546 from rnicoll/1.17-auxpow1.17-dev
1.17 AuxPoW support
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