]> git.bitcoin.ninja Git - rust-lightning/commit
Test that Persist temp and perm failures behave as expected.
authorValentine Wallace <vwallace@protonmail.com>
Fri, 2 Oct 2020 23:33:16 +0000 (19:33 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Fri, 16 Oct 2020 17:41:39 +0000 (13:41 -0400)
commita8e82cb3fbd40e6d3c23ad633205c2e6376d564a
tree8cefda4b40861c60211441f6b778f31b3e0581be
parent82f5a1cbdacd341a54bbf98f2835c0f8f6d8787a
Test that Persist temp and perm failures behave as expected.

If a persister returns a temporary failure, the channel monitor should be able
to be put on ice and then revived later. If a persister returns a permanent
failure, the channel should be force closed.
lightning/src/ln/chanmon_update_fail_tests.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs
lightning/src/util/test_utils.rs