fix getblocktemplate

This commit is contained in:
blackjok3r
2018-12-01 12:52:38 +08:00
parent b783b872b8
commit 3043dffcf5

View File

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