Clean up mining CReserveKey to prevent crash at shutdown

Fixes issue#2687
This commit is contained in:
Gavin Andresen
2013-05-23 14:13:05 -04:00
parent 36dc41f427
commit 36e826cea1
3 changed files with 14 additions and 6 deletions

View File

@@ -11,6 +11,7 @@
#include <map>
class CBlockIndex;
class CReserveKey;
#include "json/json_spirit_reader_template.h"
#include "json/json_spirit_writer_template.h"
@@ -122,6 +123,7 @@ public:
};
extern const CRPCTable tableRPC;
extern CReserveKey* pMiningKey;
extern int64 nWalletUnlockTime;
extern int64 AmountFromValue(const json_spirit::Value& value);