Repository navigation
Commit 356cdf1
committed
tests: fix test_htlc_no_force_close flake
l3 was watching its own (censored) commitment tx, so it can take a while before it notices l2's commitment is the one onchain and tries to fulfill the HTLC. If we released the censored txs before that, we only broadcast l3's own commitment txs, which conflict with l2's already-mined commitment and are rejected, leaving the mempool empty and making the final generate_block(wait_for_mempool=1) time out.
Wait for l3's fulfill attempt (a tx spending an output of l2's commitment) before releasing. Also release only those txs, deduped by txid and in capture order, so duplicate or RBF fulfill attempts are not broadcast as stale versions.
Changelog-None1 parent 836b4e8 commit 356cdf1
1 file changed
Lines changed: 23 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4377 | 4377 | | |
4378 | 4378 | | |
4379 | 4379 | | |
| 4380 | + | |
| 4381 | + | |
| 4382 | + | |
| 4383 | + | |
| 4384 | + | |
| 4385 | + | |
| 4386 | + | |
| 4387 | + | |
| 4388 | + | |
| 4389 | + | |
| 4390 | + | |
| 4391 | + | |
| 4392 | + | |
| 4393 | + | |
| 4394 | + | |
| 4395 | + | |
| 4396 | + | |
4380 | 4397 | | |
4381 | | - | |
4382 | | - | |
4383 | | - | |
4384 | | - | |
| 4398 | + | |
| 4399 | + | |
| 4400 | + | |
| 4401 | + | |
| 4402 | + | |
| 4403 | + | |
4385 | 4404 | | |
4386 | 4405 | | |
4387 | 4406 | | |
| |||
0 commit comments