Merge pull request #1008 from blackjok3rtt/FSM

fix getblocktemplate
This commit is contained in:
jl777
2018-11-30 21:51:28 -11:00
committed by GitHub

View File

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