This commit is contained in:
blackjok3r
2018-11-11 06:32:53 +08:00
parent 1d3226eafa
commit 47bc56ea6a

View File

@@ -569,10 +569,11 @@ UniValue getblocktemplate(const UniValue& params, bool fHelp)
return BIP22ValidationResult(state);
}
}
fprintf(stderr, "%s\n",strMode.c_str());
if (coinbasetxn == false )
fprintf(stderr, "disable coinbase: %s\n",strMode.c_str());
if (strMode != "template" || strMode != "disablecb")
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid mode");
//if (strMode != "template" || strMode != "disablecb")
// throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid mode");
if (vNodes.empty())
throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, "Komodo is not connected!");