]> git.bitcoin.ninja Git - rust-lightning/commit
Expose `channel_id` / `counterparty_node_id` in `BumpTransaction` event
authorElias Rohrer <dev@tnull.de>
Mon, 5 Feb 2024 13:47:39 +0000 (14:47 +0100)
committerElias Rohrer <dev@tnull.de>
Tue, 6 Feb 2024 20:02:33 +0000 (21:02 +0100)
commit5b5c87464ab7615d31c16c7e8c8554ff48fdb3cd
tree2f7c7e54d70e57a0d81a65f96dc5d2b2fb921efd
parent7c9463668a4f71663746e57bdb09ee6b91797d5a
Expose `channel_id` / `counterparty_node_id` in `BumpTransaction` event

A client node might choose not to handle `Event::BumptTransaction`
events and leave bumping / Anchor output spending to a trusted
counterparty.

However, `Event::BumptTransaction` currently doesn't offer any clear
indication what channel and/or counterparty it is referring to. In order
to allow filtering these events, we here expose the `channel_id` and
`counterparty_node_id` fields.
lightning/src/chain/channelmonitor.rs
lightning/src/events/bump_transaction.rs