refactor: [rpc] Remove confusing and brittle integral casts (take 2)

This commit is contained in:
MarcoFalke
2026-02-06 13:17:57 +01:00
parent 0cd309c75e
commit fa6801366d
10 changed files with 24 additions and 24 deletions

View File

@@ -1065,7 +1065,7 @@ static bool rest_getutxos(const std::any& context, HTTPRequest* req, const std::
UniValue utxos(UniValue::VARR);
for (const CCoin& coin : outs) {
UniValue utxo(UniValue::VOBJ);
utxo.pushKV("height", (int32_t)coin.nHeight);
utxo.pushKV("height", coin.nHeight);
utxo.pushKV("value", ValueFromAmount(coin.out.nValue));
// include the script in a json output