We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4e8186 commit 9b50a30Copy full SHA for 9b50a30
src/rpc/mempool.cpp
@@ -616,7 +616,7 @@ static RPCHelpMan gettxspendingprevout()
616
}, /*fAllowNull=*/false, /*fStrict=*/true);
617
618
const uint256 txid(ParseHashO(o, "txid"));
619
- const int nOutput = find_value(o, "vout").get_int();
+ const int nOutput{find_value(o, "vout").getInt<int>()};
620
if (nOutput < 0) {
621
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, vout cannot be negative");
622
}
0 commit comments