Test preimage claim after reorg of counterparty commitment
authorWilmer Paulino <wilmer@wilmerpaulino.com>
Mon, 14 Aug 2023 19:12:54 +0000 (12:12 -0700)
committerWilmer Paulino <wilmer@wilmerpaulino.com>
Fri, 29 Sep 2023 16:58:38 +0000 (09:58 -0700)
commitd82e6ba7a35f59157606a1d0e6c72832fa02beb6
tree2258d03534e2e5c8c268c202f9d857dd59de63eb
parent89fbbb3ce296cb5a1b246a8f09ca7a9ed1f87948
Test preimage claim after reorg of counterparty commitment

This test adds coverage for receiving a preimage after seeing a
counterparty commitment confirm, followed by a reorg and the
confirmation of a different commitment instead.

The first test covers the case where a holder commitment confirms after
the counterparty commitment reorg.

The second test covers the case where a previous counterparty commitment
confirms after the latest counterparty commitment reorg.
lightning/src/ln/reorg_tests.rs