]> git.bitcoin.ninja Git - rust-lightning/commit
Add ChannelClosed generation at cooperative/force-close/error processing
authorAntoine Riard <dev@ariard.me>
Tue, 21 Sep 2021 16:25:38 +0000 (12:25 -0400)
committerAntoine Riard <dev@ariard.me>
Tue, 21 Sep 2021 19:46:42 +0000 (15:46 -0400)
commit6ce7f3e1cecb2b9393d89cac495776f82e975a36
tree992bfee81100965cba63a9f1a890130e3d05108a
parentc29092c2355b915eded0d78fea5f6501d085c95c
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.
lightning-background-processor/src/lib.rs
lightning-persister/src/lib.rs
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/reorg_tests.rs
lightning/src/ln/shutdown_tests.rs