Test failing backward any pending HTLCs
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 27 Mar 2020 23:46:57 +0000 (16:46 -0700)
committerJeffrey Czyz <jkczyz@gmail.com>
Wed, 1 Apr 2020 23:36:49 +0000 (16:36 -0700)
commit3968647997a99615d623ebcb79a5e82a5c28cd30
tree7f928642b59b0d6aa2d7bfc430ecb72d78933bca
parent86143fd69ddf88a03fc19244aca33ec598ee1720
Test failing backward any pending HTLCs

Upon channel failure, any pending HTLCs in a channel's holding cell must
be failed backward. The added test exercises this behavior and
demonstrates a deadlock triggered within the handle_error!() macro. The
deadlock occurs when the channel_state lock is already held and then
reacquired when finish_force_close_channel() is called.
lightning/src/ln/functional_tests.rs