lnd/chanstate
ziggie 489a6dabd9
chanstate: match active htlcs by identity
ActiveHtlcs previously matched HTLCs across the local and remote
commitment snapshots by hashing the onion blob. The onion blob is
routing payload data and can be duplicated by buggy or malicious
senders, so it is not a reliable key for identifying the same HTLC on
both commitments.

Match on the HTLC's channel identity instead: the channel-level HTLC
index combined with the direction of the offer uniquely identifies an
offered HTLC within the channel state. A test is added to lock in the
new matching behavior.
2026-07-07 09:07:54 -03:00
..
channel.go chanstate: move open channel type 2026-07-06 15:50:53 -03:00
channel_status.go chanstate: make store channel types generic 2026-07-06 15:50:41 -03:00
channel_type.go chanstate: move channel type flags 2026-07-06 15:50:48 -03:00
close_summary.go chanstate: make store channel types generic 2026-07-06 15:50:41 -03:00
commitment.go chanstate: fix htlc copy 2026-07-06 15:51:20 -03:00
commitment_test.go chanstate: fix htlc copy 2026-07-06 15:51:20 -03:00
config.go chanstate: make store channel types generic 2026-07-06 15:50:41 -03:00
errors.go chanstate: move open channel errors 2026-07-06 15:50:48 -03:00
forwarding.go chanstate: move forwarding package types 2026-07-06 15:50:51 -03:00
interface.go chanstate: remove store generics 2026-07-06 15:51:20 -03:00
kv_revocation_log.go chanstate: move revocation log types 2026-07-06 15:50:52 -03:00
log.go chanstate: remove store generics 2026-07-06 15:51:20 -03:00
open_channel.go chanstate: match active htlcs by identity 2026-07-07 09:07:54 -03:00
open_channel_test.go chanstate: match active htlcs by identity 2026-07-07 09:07:54 -03:00
revocation_log.go chanstate: move revocation log types 2026-07-06 15:50:52 -03:00
shutdown.go chanstate: move shutdown metadata 2026-07-06 15:50:49 -03:00
snapshot.go chanstate: move channel snapshot type 2026-07-06 15:50:53 -03:00
taproot.go chanstate: move taproot channel helpers 2026-07-06 15:50:53 -03:00