mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Merge b5a271334c into merged_master (Bitcoin PR bitcoin/bitcoin#28922)
This commit is contained in:
commit
26b9abc2f2
59 changed files with 161 additions and 151 deletions
|
|
@ -644,7 +644,7 @@ static RPCHelpMan gettxspendingprevout()
|
|||
{"vout", UniValueType(UniValue::VNUM)},
|
||||
}, /*fAllowNull=*/false, /*fStrict=*/true);
|
||||
|
||||
const uint256 txid(ParseHashO(o, "txid"));
|
||||
const Txid txid = Txid::FromUint256(ParseHashO(o, "txid"));
|
||||
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