diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/rpc/mempool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/mempool.cpp b/src/rpc/mempool.cpp index 01c75bfda3..90dc86cd01 100644 --- a/src/rpc/mempool.cpp +++ b/src/rpc/mempool.cpp @@ -616,7 +616,7 @@ static RPCHelpMan gettxspendingprevout() }, /*fAllowNull=*/false, /*fStrict=*/true); const uint256 txid(ParseHashO(o, "txid")); - const int nOutput = find_value(o, "vout").get_int(); + const int nOutput{find_value(o, "vout").getInt<int>()}; if (nOutput < 0) { throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, vout cannot be negative"); } |