Expose `{prev,next}_user_channel_id` fields in `PaymentForwarded`
authorElias Rohrer <dev@tnull.de>
Thu, 7 Mar 2024 09:37:08 +0000 (10:37 +0100)
committerElias Rohrer <dev@tnull.de>
Tue, 19 Mar 2024 12:29:09 +0000 (13:29 +0100)
commit134d60a3e800b062f85270973c1e0702eeab077c
tree27e165eaf4b91bba0fa357a6c85ce431437be613
parent7a35bf84f0a217e3c9312c2b7dfccbdec2600988
Expose `{prev,next}_user_channel_id` fields in `PaymentForwarded`

This is useful for users that track channels by `user_channel_id`.

For example, in `lightning-liquidity` we currently keep a full
`HashMap<ChanelId, u128>` around *just* to be able to associate
`PaymentForwarded` events with the channels otherwise tracked by
`user_channel_id`.
lightning/src/events/mod.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs