Merge bitcoin/bitcoin#35223: refactor: [rpc] Remove confusing and brittle integral casts (take 3)

fa864b937e refactor: [rpc] Remove confusing and brittle integral casts (take 3) (MarcoFalke)

Pull request description:

  This one cast is harmless, but confusing. Also, in the past they have been brittle to the extend of triggering bugs. See commit 44afed4cd9. So remove this one recently introduced one.

ACKs for top commit:
  fjahr:
    ACK fa864b937e
  stickies-v:
    ACK fa864b937e
  sedited:
    ACK fa864b937e

Tree-SHA512: 78407b97964c144f4d94cd445af4f57e29e460912ae9178898224d71f3d5237e5db88a981f7636193a6b7a22be8ad4fd833eb0efa9507284c10f87d9da0ec81b
This commit is contained in:
merge-script
2026-05-06 23:55:54 +02:00

View File

@@ -1167,7 +1167,7 @@ static RPCMethod exportasmap()
UniValue result(UniValue::VOBJ);
result.pushKV("path", export_path.utf8string());
result.pushKV("bytes_written", (uint64_t)node::data::ip_asn.size());
result.pushKV("bytes_written", node::data::ip_asn.size());
result.pushKV("file_hash", HexStr(hasher.GetSHA256()));
return result;
#endif