diff options
author | fanquake <fanquake@gmail.com> | 2022-05-16 14:25:59 +0100 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-05-16 14:26:38 +0100 |
commit | b019cdc036343a437fd7ced85467bd95f48d84c4 (patch) | |
tree | 790b3c0969e11b7009b6a2f1bb329b7196d322b1 /src/rpc | |
parent | aa3200d8967215dc93ea75e19db0aca537ec3d35 (diff) | |
parent | fa347a906685df1d44cafa3e6cc7fdd2ace68ff5 (diff) |
Merge bitcoin/bitcoin#25095: rpc: Fix implicit-integer-sign-change in gettxout
fa347a906685df1d44cafa3e6cc7fdd2ace68ff5 rpc: Fix implicit-integer-sign-change in gettxout (MacroFake)
Pull request description:
ACKs for top commit:
theStack:
Code-review ACK fa347a906685df1d44cafa3e6cc7fdd2ace68ff5
Tree-SHA512: 2a1128f714119b6b6cfeb20ee59c4f46404d5a83942253c73de64b0289a7d41e4437cf77d19b1cf623e2dd15fbaa1ec7acd03cc5d6dde41b3c7d06a082073ea1
Diffstat (limited to 'src/rpc')
-rw-r--r-- | src/rpc/blockchain.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index ec1404cc97..fb79e84c15 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(); |