rpc: Fix implicit-integer-sign-change in gettxout

This commit is contained in:
MacroFake 2022-05-09 17:31:51 +02:00
parent fac2c796cb
commit fa347a9066
No known key found for this signature in database
GPG Key ID: CE2B75697E69A548

View File

@ -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();