aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoinrpc.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2013-05-30 15:51:41 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2013-05-30 16:41:35 +0200
commitd98bf10f23e0e633ff2ff33075a353d30bf862b4 (patch)
tree0bc8873a2c74894989dcf9dfe3b8f69696d5814b /src/bitcoinrpc.h
parentba35ecc003d148527f30b4df84285add072fae90 (diff)
Move pMiningKey init out of StartRPCThreads
This commit decouples the pMiningKey initialization and shutdown from the RPC threads. `getwork` and `getblocktemplate` rely on pMiningKey, and can also be ran from the debug window in the UI even when the RPC server is not running. Solves issue #2706.
Diffstat (limited to 'src/bitcoinrpc.h')
-rw-r--r--src/bitcoinrpc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bitcoinrpc.h b/src/bitcoinrpc.h
index cf5b137988..547cccf44b 100644
--- a/src/bitcoinrpc.h
+++ b/src/bitcoinrpc.h
@@ -123,7 +123,9 @@ public:
};
extern const CRPCTable tableRPC;
-extern CReserveKey* pMiningKey;
+
+extern void InitRPCMining();
+extern void ShutdownRPCMining();
extern int64 nWalletUnlockTime;
extern int64 AmountFromValue(const json_spirit::Value& value);