]> git.bitcoin.ninja Git - rust-lightning/commit
Add ChannelClosed generation at cooperative/force-close/error processing
authorAntoine Riard <dev@ariard.me>
Tue, 13 Jul 2021 16:56:40 +0000 (12:56 -0400)
committerAntoine Riard <dev@ariard.me>
Fri, 17 Sep 2021 22:41:16 +0000 (18:41 -0400)
commit0dd987fc41240d96a13f2011cb0679eb6abdb3b1
tree307cd337dcc5f633a21eaad7b317aa98a31044e6
parent4f5ac107c4a06e7f9a4089a37a955567c9bdfc27
Add ChannelClosed generation at cooperative/force-close/error processing

When we detect a channel `is_shutdown()` or call on it
`force_shutdown()`, we notify the user with a Event::ChannelClosed
informing about the id and closure reason in a best effort.
lightning/src/ln/chanmon_update_fail_tests.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/monitor_tests.rs
lightning/src/ln/onion_route_tests.rs
lightning/src/ln/reorg_tests.rs
lightning/src/util/events.rs