extend conversion to UniValue
This commit is contained in:
committed by
Jack Grigg
parent
ed21d5bd4b
commit
9756b7bd29
@@ -522,7 +522,7 @@ Value getblocktemplate(const Array& params, bool fHelp)
|
||||
if (strMode == "proposal")
|
||||
{
|
||||
const Value& dataval = find_value(oparam, "data");
|
||||
if (dataval.type() != str_type)
|
||||
if (dataval.isStr())
|
||||
throw JSONRPCError(RPC_TYPE_ERROR, "Missing data String key for proposal");
|
||||
|
||||
CBlock block;
|
||||
@@ -646,7 +646,7 @@ Value getblocktemplate(const Array& params, bool fHelp)
|
||||
UpdateTime(pblock, Params().GetConsensus(), pindexPrev);
|
||||
pblock->nNonce = uint256();
|
||||
|
||||
static const Array aCaps = boost::assign::list_of("proposal");
|
||||
Array aCaps; aCaps.push_back("proposal");
|
||||
|
||||
Value txCoinbase = Value::null;
|
||||
Array transactions;
|
||||
|
||||
Reference in New Issue
Block a user