|
|
|
@ -111,10 +111,10 @@ Value getwork(const Array& params, bool fHelp)
@@ -111,10 +111,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, "Bitcoin is not connected!"); |
|
|
|
|
throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, "Twister is not connected!"); |
|
|
|
|
|
|
|
|
|
if (IsInitialBlockDownload()) |
|
|
|
|
throw JSONRPCError(RPC_CLIENT_IN_INITIAL_DOWNLOAD, "Bitcoin is downloading blocks..."); |
|
|
|
|
throw JSONRPCError(RPC_CLIENT_IN_INITIAL_DOWNLOAD, "Twister is downloading blocks..."); |
|
|
|
|
|
|
|
|
|
typedef map<uint256, pair<CBlock*, CScript> > mapNewBlock_t; |
|
|
|
|
static mapNewBlock_t mapNewBlock; // FIXME: thread safety
|
|
|
|
@ -256,10 +256,10 @@ Value getblocktemplate(const Array& params, bool fHelp)
@@ -256,10 +256,10 @@ Value getblocktemplate(const Array& params, bool fHelp)
|
|
|
|
|
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid mode"); |
|
|
|
|
|
|
|
|
|
if (vNodes.empty()) |
|
|
|
|
throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, "Bitcoin is not connected!"); |
|
|
|
|
throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, "Twister is not connected!"); |
|
|
|
|
|
|
|
|
|
if (IsInitialBlockDownload()) |
|
|
|
|
throw JSONRPCError(RPC_CLIENT_IN_INITIAL_DOWNLOAD, "Bitcoin is downloading blocks..."); |
|
|
|
|
throw JSONRPCError(RPC_CLIENT_IN_INITIAL_DOWNLOAD, "Twister is downloading blocks..."); |
|
|
|
|
|
|
|
|
|
// Update block
|
|
|
|
|
static unsigned int nTransactionsUpdatedLast; |
|
|
|
|