Skip to content

Commit d38cd47

Browse files
committed
Merge pull request #6234
ef5fca8 fix rpcmining/getblocktemplate univalue transition logic error (Jonas Schnelli)
2 parents 466f0ea + ef5fca8 commit d38cd47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rpcmining.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ UniValue getblocktemplate(const UniValue& params, bool fHelp)
398398
if (strMode == "proposal")
399399
{
400400
const UniValue& dataval = find_value(oparam, "data");
401-
if (dataval.isStr())
401+
if (!dataval.isStr())
402402
throw JSONRPCError(RPC_TYPE_ERROR, "Missing data String key for proposal");
403403

404404
CBlock block;

0 commit comments

Comments
 (0)