]> git.bitcoin.ninja Git - rust-lightning/commit
Add commitment transaction broadcast as a ChannelMonitor event
authorValentine Wallace <vwallace@protonmail.com>
Mon, 24 Aug 2020 21:27:49 +0000 (17:27 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Tue, 25 Aug 2020 20:37:49 +0000 (16:37 -0400)
commitad18c4d853fe0e2bffa66f54a16127fc495456bd
tree1459f9866642a5bedadbde149fdbc8ce7e1d8c35
parentb3b4f434a2c384b4d37d7e7977ebd190377f2891
Add commitment transaction broadcast as a ChannelMonitor event

To do this, we replace get_and_clear_pending_htlcs_updated with
get_and_clear_pending_monitor_events, and which still transmits HTLCUpdates
as before, but now also transmits a new MonitorEvent::CommitmentTxBroadcasted
event when a channel's commitment transaction is broadcasted.
fuzz/src/chanmon_consistency.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/channelmonitor.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/reorg_tests.rs
lightning/src/util/test_utils.rs