|
|
|
@ -171,10 +171,10 @@ Value getworkex(const Array& params, bool fHelp)
@@ -171,10 +171,10 @@ Value getworkex(const Array& params, bool fHelp)
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
if (vNodes.empty()) |
|
|
|
|
throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, "Anoncoin is not connected!"); |
|
|
|
|
throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, "Gostcoin is not connected!"); |
|
|
|
|
|
|
|
|
|
if (IsInitialBlockDownload()) |
|
|
|
|
throw JSONRPCError(RPC_CLIENT_IN_INITIAL_DOWNLOAD, "Anoncoin is downloading blocks..."); |
|
|
|
|
throw JSONRPCError(RPC_CLIENT_IN_INITIAL_DOWNLOAD, "Gostcoin is downloading blocks..."); |
|
|
|
|
|
|
|
|
|
typedef map<uint256, pair<CBlock*, CScript> > mapNewBlock_t; |
|
|
|
|
static mapNewBlock_t mapNewBlock; // FIXME: thread safety
|
|
|
|
@ -310,10 +310,10 @@ Value getwork(const Array& params, bool fHelp)
@@ -310,10 +310,10 @@ Value getwork(const Array& params, bool fHelp)
|
|
|
|
|
"If [data] is specified, tries to solve the block and returns true if it was successful."); |
|
|
|
|
|
|
|
|
|
if (vNodes.empty()) |
|
|
|
|
throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, "Anoncoin is not connected!"); |
|
|
|
|
throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, "Gostcoin is not connected!"); |
|
|
|
|
|
|
|
|
|
if (IsInitialBlockDownload()) |
|
|
|
|
throw JSONRPCError(RPC_CLIENT_IN_INITIAL_DOWNLOAD, "Anoncoin is downloading blocks..."); |
|
|
|
|
throw JSONRPCError(RPC_CLIENT_IN_INITIAL_DOWNLOAD, "Gostcoin is downloading blocks..."); |
|
|
|
|
|
|
|
|
|
typedef map<uint256, pair<CBlock*, CScript> > mapNewBlock_t; |
|
|
|
|
static mapNewBlock_t mapNewBlock; // FIXME: thread safety
|
|
|
|
@ -450,10 +450,10 @@ Value getblocktemplate(const Array& params, bool fHelp)
@@ -450,10 +450,10 @@ Value getblocktemplate(const Array& params, bool fHelp)
|
|
|
|
|
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid mode"); |
|
|
|
|
|
|
|
|
|
if (vNodes.empty()) |
|
|
|
|
throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, "Anoncoin is not connected!"); |
|
|
|
|
throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, "Gostcoin is not connected!"); |
|
|
|
|
|
|
|
|
|
if (IsInitialBlockDownload()) |
|
|
|
|
throw JSONRPCError(RPC_CLIENT_IN_INITIAL_DOWNLOAD, "Anoncoin is downloading blocks..."); |
|
|
|
|
throw JSONRPCError(RPC_CLIENT_IN_INITIAL_DOWNLOAD, "Gostcoin is downloading blocks..."); |
|
|
|
|
|
|
|
|
|
// Update block
|
|
|
|
|
static unsigned int nTransactionsUpdatedLast; |
|
|
|
|