0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-08 10:31:50 -05:00

fix rpcmining/getblocktemplate univalue transition logic error

This commit is contained in:
Jonas Schnelli 2015-06-04 21:39:44 +02:00
parent 44c7474446
commit ef5fca8b80

View file

@ -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;