From e68bf6c58d9ece887c7e30264f66a1dddb68ce9e Mon Sep 17 00:00:00 2001 From: Elle Mouton Date: Thu, 4 Dec 2025 12:52:42 +0200 Subject: [PATCH] docs: add release notes for race condition fixes --- docs/release-notes/release-notes-0.21.0.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/release-notes/release-notes-0.21.0.md b/docs/release-notes/release-notes-0.21.0.md index d15df4114..5bd5c6501 100644 --- a/docs/release-notes/release-notes-0.21.0.md +++ b/docs/release-notes/release-notes-0.21.0.md @@ -31,6 +31,14 @@ or key) existed. The manager now correctly regenerates both files when either is missing, preventing "file not found" errors on startup. +- [Fixed race conditions](https://github.com/lightningnetwork/lnd/pull/10420) in + the channel graph database. The `Node.PubKey()` and + `ChannelEdgeInfo.NodeKey1/NodeKey2()` methods had check-then-act races when + caching parsed public keys. Additionally, `DisconnectBlockAtHeight` was + accessing the reject and channel caches without proper locking. The caching + has been removed from the public key parsing methods, and proper mutex + protection has been added to the cache access in `DisconnectBlockAtHeight`. + # New Features - Basic Support for [onion messaging forwarding](https://github.com/lightningnetwork/lnd/pull/9868)