-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
itest: add new testCustomChannelsHtlcForceClose itest
In this commit, we add a new itest that tests the 4 sweeping cases for HTLCs: * local success * remote success * local timeout * remote timeout To test this, we have Alice load up her commitment transaction with 4 HTLCs (2 incoming, 2 outgoing) using hodl invoices. Then we force close her commitment transaction. In this scenario, she needs to broadcast a second level transaction to ultimately timeout, while Bob can sweep directly from the commitment transaction.
- Loading branch information
Showing
5 changed files
with
549 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.