aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMacroFake <falke.marco@gmail.com>2022-05-30 16:39:46 +0200
committerMacroFake <falke.marco@gmail.com>2022-05-30 16:39:46 +0200
commit9b50a309ff21b0d5d85ded8b67cb08ae2e75fe84 (patch)
tree99d0d27a9e44cfd4b4dcb8c03b711f73614b1785 /src
parente4e8186ab41c897b8a849dba25ae44475fe60550 (diff)
refactor: Replace get_int by getInt<int> alias
Diffstat (limited to 'src')
-rw-r--r--src/rpc/mempool.cpp2
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");
}