From f162f44a0def963005db552358e01ecbbba001d8 Mon Sep 17 00:00:00 2001 From: bitromortac Date: Tue, 21 Jul 2026 11:49:17 +0000 Subject: [PATCH] docs: add release notes for privacy mapper refactoring Add a succinct release note entry detailing the 32-bit truncation prevention and allocation optimization introduced by PR-1358. --- docs/release-notes/release-notes-0.17.1.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/release-notes/release-notes-0.17.1.md b/docs/release-notes/release-notes-0.17.1.md index 6627288e..9be01091 100644 --- a/docs/release-notes/release-notes-0.17.1.md +++ b/docs/release-notes/release-notes-0.17.1.md @@ -31,6 +31,14 @@ -V`](https://github.com/lightninglabs/lightning-terminal/pull/1337): The `-V` flag now prints litd's version instead of the integrated lnd version. +* [Refactor privacy mapper to prevent 32-bit truncation and optimize + allocations](https://github.com/lightninglabs/lightning-terminal/pull/1358): + Refactored the privacy mapper's random number generation to use `int64` + instead of `int` to prevent architecture-dependent truncation on 32-bit + runtimes. This represents a breaking change to the `NewPrivacyMapper` and + `CryptoRandIntn` functions. The PR also introduced a `sync.Pool` for + `*big.Int` to optimize allocations. + ## RPC Updates ## Integrated Binary Updates