aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMacroFake <falke.marco@gmail.com>2022-05-09 17:31:51 +0200
committerMacroFake <falke.marco@gmail.com>2022-05-13 11:39:48 +0200
commitfa347a906685df1d44cafa3e6cc7fdd2ace68ff5 (patch)
treeb13e496b0b80c0b1eee3cc2a0ba401eca60bb06d
parentfac2c796cb4137e025a4a783f7460e5db9c74bc2 (diff)
downloadbitcoin-fa347a906685df1d44cafa3e6cc7fdd2ace68ff5.tar.xz
rpc: Fix implicit-integer-sign-change in gettxout
-rw-r--r--src/rpc/blockchain.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp
index 50bf764e53..352df4d902 100644
--- a/src/rpc/blockchain.cpp
+++ b/src/rpc/blockchain.cpp
@@ -993,8 +993,7 @@ static RPCHelpMan gettxout()
UniValue ret(UniValue::VOBJ);
uint256 hash(ParseHashV(request.params[0], "txid"));
- int n = request.params[1].get_int();
- COutPoint out(hash, n);
+ COutPoint out{hash, request.params[1].getInt<uint32_t>()};
bool fMempool = true;
if (!request.params[2].isNull())
fMempool = request.params[2].get_bool();