Skip to content

Commit ef5fca8

Browse files
committed
fix rpcmining/getblocktemplate univalue transition logic error
1 parent 44c7474 commit ef5fca8

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)