There was an error while loading. Please reload this page.
2 parents 466f0ea + ef5fca8 commit d38cd47Copy full SHA for d38cd47
1 file changed
src/rpcmining.cpp
@@ -398,7 +398,7 @@ UniValue getblocktemplate(const UniValue& params, bool fHelp)
398
if (strMode == "proposal")
399
{
400
const UniValue& dataval = find_value(oparam, "data");
401
- if (dataval.isStr())
+ if (!dataval.isStr())
402
throw JSONRPCError(RPC_TYPE_ERROR, "Missing data String key for proposal");
403
404
CBlock block;
0 commit comments