]> git.bitcoin.ninja Git - rust-lightning/commit
Refactor check_closed_event for multiple events
authorWillem Van Lint <noreply@wvanlint.dev>
Wed, 27 Sep 2023 23:12:35 +0000 (16:12 -0700)
committerWillem Van Lint <noreply@wvanlint.dev>
Thu, 19 Oct 2023 03:46:02 +0000 (20:46 -0700)
commita2b46b54dab5e2005b49327a2b488fda7f26bdc2
tree7bca2e9732fec519b0c73aa29a99d532cc5d64f6
parent46dab8f5ef20d9c43bd53209e8b4858e72806d69
Refactor check_closed_event for multiple events

The check_closed_event function verified closure events against multiple
counterparty nodes, but only a single closure reason and channel
capacity. This commit introduces a check_closed_events function to
verify events against descriptions of each expected event, and refactors
check_closed_event in function of check_closed_events.
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs