|
|
|
@ -30,10 +30,6 @@ using namespace boost;
@@ -30,10 +30,6 @@ using namespace boost;
|
|
|
|
|
using namespace boost::asio; |
|
|
|
|
using namespace json_spirit; |
|
|
|
|
|
|
|
|
|
// Key used by getwork/getblocktemplate miners.
|
|
|
|
|
// Allocated in StartRPCThreads, free'd in StopRPCThreads
|
|
|
|
|
CReserveKey* pMiningKey = NULL; |
|
|
|
|
|
|
|
|
|
static std::string strRPCUserColonPass; |
|
|
|
|
|
|
|
|
|
// These are created by StartRPCThreads, destroyed in StopRPCThreads
|
|
|
|
@ -727,9 +723,6 @@ static void RPCAcceptHandler(boost::shared_ptr< basic_socket_acceptor<Protocol,
@@ -727,9 +723,6 @@ static void RPCAcceptHandler(boost::shared_ptr< basic_socket_acceptor<Protocol,
|
|
|
|
|
|
|
|
|
|
void StartRPCThreads() |
|
|
|
|
{ |
|
|
|
|
// getwork/getblocktemplate mining rewards paid here:
|
|
|
|
|
pMiningKey = new CReserveKey(pwalletMain); |
|
|
|
|
|
|
|
|
|
strRPCUserColonPass = mapArgs["-rpcuser"] + ":" + mapArgs["-rpcpassword"]; |
|
|
|
|
if ((mapArgs["-rpcpassword"] == "") || |
|
|
|
|
(mapArgs["-rpcuser"] == mapArgs["-rpcpassword"])) |
|
|
|
@ -849,8 +842,6 @@ void StartRPCThreads()
@@ -849,8 +842,6 @@ void StartRPCThreads()
|
|
|
|
|
|
|
|
|
|
void StopRPCThreads() |
|
|
|
|
{ |
|
|
|
|
delete pMiningKey; pMiningKey = NULL; |
|
|
|
|
|
|
|
|
|
if (rpc_io_service == NULL) return; |
|
|
|
|
|
|
|
|
|
deadlineTimers.clear(); |
|
|
|
|