fix getblocktemplate

This commit is contained in:
blackjok3r
2018-12-01 12:18:44 +08:00
parent 7644808ff1
commit 0fc3fd3de9

View File

@@ -606,9 +606,13 @@ UniValue getblocktemplate(const UniValue& params, bool fHelp)
return BIP22ValidationResult(state);
}
}
else
{
strMode = "template";
}
if (strMode != "template")
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid mode");
//if (strMode != "template")
// throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid mode");
bool fvNodesEmpty;
{