mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 18:10:34 +01:00
578df81fb2
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. |
||
---|---|---|
.. | ||
lnd_multi-hop_htlc_local_chain_claim_test.go | ||
lnd_multi-hop_htlc_receiver_chain_claim_test.go | ||
lnd_multi-hop_htlc_remote_chain_claim_test.go | ||
lnd_test.go | ||
onchain.go |