test: add comprehensive integration tests for on-chain HTLC handling

In this commit, we add 6 new integration tests to test the various
actions that may need to be performed when either side goes on-chain to
fully resolve HTLC’s. Many of the tests are mirrors of each other as
they test sweeping/resolving HTLC’s from both commitment transactions.
This commit is contained in:
Olaoluwa Osuntokun
2018-01-22 18:59:44 -08:00
parent a1e2560b12
commit f8adab1f1c
5 changed files with 1399 additions and 15 deletions

View File

@@ -42,6 +42,8 @@ const (
defaultNoEncryptWallet = false
defaultTrickleDelay = 30 * 1000
defaultBroadcastDelta = 10
// minTimeLockDelta is the minimum timelock we require for incoming
// HTLCs on our channels.
minTimeLockDelta = 4