lnd/graph/db/models
Elle Mouton 31b3e7424d
graph/db/models: fix race conditions in ChannelEdgeInfo
Both NodeKey1 and NodeKey2 methods had the same race condition as the
Node.PubKey method, where concurrent calls could race to write to the
cached fields.

Remove the caching for the same reasons: parsing overhead is minimal
and doesn't justify the complexity and race risk.
2025-12-08 11:56:36 +02:00
..
cached_edge_info.go graph/db: let GraghCache.AddChannel take CachedEdgeInfo 2025-06-10 20:10:35 +02:00
cached_edge_policy.go graph/db: add CachedEdgePolicy helpers 2025-06-10 20:10:35 +02:00
channel.go multi+refactor: move models package to graph/db 2024-11-28 13:34:33 +02:00
channel_auth_proof.go graph/db: simplify auth proof and edge info 2025-11-12 22:54:05 +08:00
channel_edge_info.go graph/db/models: fix race conditions in ChannelEdgeInfo 2025-12-08 11:56:36 +02:00
channel_edge_policy.go graph/db: extract InboundFee at deserialisation time 2025-06-09 08:26:33 +02:00
inbound_fee.go multi+refactor: move models package to graph/db 2024-11-28 13:34:33 +02:00
inbound_fee_test.go multi+refactor: move models package to graph/db 2024-11-28 13:34:33 +02:00
node.go graph/db/models: fix race condition in Node.PubKey 2025-12-08 11:56:35 +02:00