lnd.xprv/lntest
Wilmer Paulino 578df81fb2
lntest/itest: resolve mempool flake in multi-hop htlc local timeout test
The test assumed that transactions would be broadcast and confirmed at
incorrect heights. Due to timing issues, it was possible for the test to
still succeed, resulting in a flake.

The test assumes that Bob will sweep a pending outgoing HTLC and commit
output back to their wallet. This commit ensures that these operations
are done when expected, i.e.:

1. Bob force closes the channel due to the HTLC timing out.
2. Once the channel is confirmed, Bob broadcasts their HTLC timeout
transaction.
3. Bob broadcasts their commit output sweep transaction once its CSV
expires.
4. Bob broadcasts their second layer sweep transaction for the timed out
HTLC once its CSV expires.
2019-08-30 12:15:14 -07:00
..
itest lntest/itest: resolve mempool flake in multi-hop htlc local timeout test 2019-08-30 12:15:14 -07:00
btcd.go lntest: add Name() to BackendCfg 2019-05-27 09:29:03 +02:00
doc.go lntest: Add doc.go with package documentation. 2017-12-14 20:06:23 -08:00
harness.go lntest: add flag -goroutinedump 2019-07-11 14:44:44 +02:00
neutrino.go lntest: add Name() to BackendCfg 2019-05-27 09:29:03 +02:00
node.go multi: add watchtower client RPC subserver 2019-07-30 15:18:15 -07:00
timeouts_darwin.go lntest/timeouts: split into darwin and non-darwin timeouts 2019-03-27 19:00:39 -07:00
timeouts.go lntest/timeouts: split into darwin and non-darwin timeouts 2019-03-27 19:00:39 -07:00