]> git.bitcoin.ninja Git - rust-lightning/commit
Add test coverage for failure of inconsistent MPP parts 2022-04-moar-mpp-fail-test
authorMatt Corallo <git@bluematt.me>
Mon, 25 Apr 2022 22:51:02 +0000 (22:51 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 28 Apr 2022 02:44:19 +0000 (02:44 +0000)
commit7a8344a73870675808baa99ee740ca6d00760d11
treedadf8fe9e10df952ab7885e1968994396a7411c0
parentb9d097b07bd9f4c8d88cb5f60fbfaae438fc4f0b
Add test coverage for failure of inconsistent MPP parts

When we receive multiple HTLCs which claim to be a part of the same
MPP but which are inconsistent for some reason, we should fail the
inconsistent HTLCs but keep the first HTLCs up until the first
inconsistency.

This works, but it turns out there was no test coverage, so we add
some here.
lightning/src/ln/functional_tests.rs