diff options
author | MacroFake <falke.marco@gmail.com> | 2022-05-30 16:39:46 +0200 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-05-30 16:39:46 +0200 |
commit | 9b50a309ff21b0d5d85ded8b67cb08ae2e75fe84 (patch) | |
tree | 99d0d27a9e44cfd4b4dcb8c03b711f73614b1785 /src | |
parent | e4e8186ab41c897b8a849dba25ae44475fe60550 (diff) |
refactor: Replace get_int by getInt<int> alias
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"); } |