Browse Source

fix getblocktemplate

pull/4/head
blackjok3r 6 years ago
parent
commit
3043dffcf5
  1. 7
      src/rpc/mining.cpp

7
src/rpc/mining.cpp

@ -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;
{

Loading…
Cancel
Save