mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 21:12:48 +01:00
fix rpcmining/getblocktemplate univalue transition logic error
This commit is contained in:
parent
44c7474446
commit
ef5fca8b80
@ -398,7 +398,7 @@ UniValue getblocktemplate(const UniValue& params, bool fHelp)
|
|||||||
if (strMode == "proposal")
|
if (strMode == "proposal")
|
||||||
{
|
{
|
||||||
const UniValue& dataval = find_value(oparam, "data");
|
const UniValue& dataval = find_value(oparam, "data");
|
||||||
if (dataval.isStr())
|
if (!dataval.isStr())
|
||||||
throw JSONRPCError(RPC_TYPE_ERROR, "Missing data String key for proposal");
|
throw JSONRPCError(RPC_TYPE_ERROR, "Missing data String key for proposal");
|
||||||
|
|
||||||
CBlock block;
|
CBlock block;
|
||||||
|
Loading…
Reference in New Issue
Block a user