Skip to content

Commit

Permalink
Merge pull request #6234
Browse files Browse the repository at this point in the history
ef5fca8 fix rpcmining/getblocktemplate univalue transition logic error (Jonas Schnelli)
  • Loading branch information
laanwj committed Jun 5, 2015
2 parents 466f0ea + ef5fca8 commit d38cd47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpcmining.cpp
Expand Up @@ -398,7 +398,7 @@ UniValue getblocktemplate(const UniValue& params, bool fHelp)
if (strMode == "proposal") if (strMode == "proposal")
{ {
const UniValue& dataval = find_value(oparam, "data"); const UniValue& dataval = find_value(oparam, "data");
if (dataval.isStr()) if (!dataval.isStr())
throw JSONRPCError(RPC_TYPE_ERROR, "Missing data String key for proposal"); throw JSONRPCError(RPC_TYPE_ERROR, "Missing data String key for proposal");


CBlock block; CBlock block;
Expand Down

0 comments on commit d38cd47

Please sign in to comment.