mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Merge e0a70c5b4f into merged_master (Bitcoin PR bitcoin/bitcoin#27605)
This commit is contained in:
commit
a40347d7f5
21 changed files with 101 additions and 102 deletions
|
|
@ -634,7 +634,7 @@ static RPCHelpMan getblocktemplate()
|
|||
if (!request.params[0].isNull())
|
||||
{
|
||||
const UniValue& oparam = request.params[0].get_obj();
|
||||
const UniValue& modeval = find_value(oparam, "mode");
|
||||
const UniValue& modeval = oparam.find_value("mode");
|
||||
if (modeval.isStr())
|
||||
strMode = modeval.get_str();
|
||||
else if (modeval.isNull())
|
||||
|
|
@ -643,11 +643,11 @@ static RPCHelpMan getblocktemplate()
|
|||
}
|
||||
else
|
||||
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid mode");
|
||||
lpval = find_value(oparam, "longpollid");
|
||||
lpval = oparam.find_value("longpollid");
|
||||
|
||||
if (strMode == "proposal")
|
||||
{
|
||||
const UniValue& dataval = find_value(oparam, "data");
|
||||
const UniValue& dataval = oparam.find_value("data");
|
||||
if (!dataval.isStr())
|
||||
throw JSONRPCError(RPC_TYPE_ERROR, "Missing data String key for proposal");
|
||||
|
||||
|
|
@ -674,7 +674,7 @@ static RPCHelpMan getblocktemplate()
|
|||
return BIP22ValidationResult(state);
|
||||
}
|
||||
|
||||
const UniValue& aClientRules = find_value(oparam, "rules");
|
||||
const UniValue& aClientRules = oparam.find_value("rules");
|
||||
if (aClientRules.isArray()) {
|
||||
for (unsigned int i = 0; i < aClientRules.size(); ++i) {
|
||||
const UniValue& v = aClientRules[i];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue