mirror of
https://github.com/lightningnetwork/lnd.git
synced 2026-08-13 12:32:48 +02:00
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. |
||
|---|---|---|
| .. | ||
| channel.go | ||
| channel_status.go | ||
| channel_type.go | ||
| close_summary.go | ||
| commitment.go | ||
| commitment_test.go | ||
| config.go | ||
| errors.go | ||
| forwarding.go | ||
| interface.go | ||
| kv_revocation_log.go | ||
| log.go | ||
| open_channel.go | ||
| open_channel_test.go | ||
| revocation_log.go | ||
| shutdown.go | ||
| snapshot.go | ||
| taproot.go | ||