|
|
|
@ -441,13 +441,11 @@ UniValue getblocktemplate(const JSONRPCRequest& request)
@@ -441,13 +441,11 @@ UniValue getblocktemplate(const JSONRPCRequest& request)
|
|
|
|
|
if(!g_connman) |
|
|
|
|
throw JSONRPCError(RPC_CLIENT_P2P_DISABLED, "Error: Peer-to-peer functionality missing or disabled"); |
|
|
|
|
|
|
|
|
|
#if 0 |
|
|
|
|
if (g_connman->GetNodeCount(CConnman::CONNECTIONS_ALL) == 0) |
|
|
|
|
throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, "Kevacoin is not connected!"); |
|
|
|
|
|
|
|
|
|
if (IsInitialBlockDownload()) |
|
|
|
|
throw JSONRPCError(RPC_CLIENT_IN_INITIAL_DOWNLOAD, "Kevacoin is downloading blocks..."); |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
static unsigned int nTransactionsUpdatedLast; |
|
|
|
|
|
|
|
|
|