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
|
|
@ -649,7 +649,7 @@ static RPCHelpMan gettxspendingprevout()
|
|||
}, /*fAllowNull=*/false, /*fStrict=*/true);
|
||||
|
||||
const uint256 txid(ParseHashO(o, "txid"));
|
||||
const int nOutput{find_value(o, "vout").getInt<int>()};
|
||||
const int nOutput{o.find_value("vout").getInt<int>()};
|
||||
if (nOutput < 0) {
|
||||
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, vout cannot be negative");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue