Browse Source

Merge pull request #6234

ef5fca8 fix rpcmining/getblocktemplate univalue transition logic error (Jonas Schnelli)
0.13
Wladimir J. van der Laan 10 years ago
parent
commit
d38cd47fe3
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 2
      src/rpcmining.cpp

2
src/rpcmining.cpp

@ -398,7 +398,7 @@ UniValue getblocktemplate(const UniValue& params, bool fHelp) @@ -398,7 +398,7 @@ UniValue getblocktemplate(const UniValue& params, bool fHelp)
if (strMode == "proposal")
{
const UniValue& dataval = find_value(oparam, "data");
if (dataval.isStr())
if (!dataval.isStr())
throw JSONRPCError(RPC_TYPE_ERROR, "Missing data String key for proposal");
CBlock block;

Loading…
Cancel
Save