Decode update_add_htlc onions before forwarding HTLCs
authorWilmer Paulino <wilmer@wilmerpaulino.com>
Sat, 9 Mar 2024 08:53:48 +0000 (00:53 -0800)
committerWilmer Paulino <wilmer@wilmerpaulino.com>
Wed, 27 Mar 2024 21:28:05 +0000 (14:28 -0700)
commitfe6564816a6275e45dcd91dd0320c30ebb1f38de
tree37391eb28de90c2273dd4f0874a74a4d54881636
parenta6c912843456fb9521252179864e7501f112ebf6
Decode update_add_htlc onions before forwarding HTLCs

This commit completes all of the groundwork necessary to decode incoming
`update_add_htlc` onions once they're fully committed to by both sides.
HTLCs are tracked in batches per-channel on the channel they were
received on. While this path is unreachable for now, until
`InboundHTLCResolution::Resolved` is replaced with
`InboundHTLCResolution::Pending`, it will allow us to obtain
`HTLCHandlingFailed` events for _any_ failed HTLC that comes across a
channel.
lightning/src/ln/channelmanager.rs