Merge pull request #6234
ef5fca8
fix rpcmining/getblocktemplate univalue transition logic error (Jonas Schnelli)
This commit is contained in:
commit
d38cd47fe3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue