Commit a33efc9
committed
itest: test second-level HTLC revocation in breach scenario
Add a custom-channel breach integration test that exercises revoked HTLCs which
advance to second level before the honest party comes back online and sweeps
them.
Keep the default scenario small for normal suite runtime, but structure the
itest so it can be scaled up to stress the same recovery path. Higher-count
variants need additional setup discipline: the pre-breach rebalance must scale
with the requested number of in-flight HTLCs, the post-settlement keysend must
wait until HTLC cleanup has actually completed, and justice mining must accept
the variable set of justice transactions published once more HTLCs reach second
level.
Make the breach test configurable through TAPD_BREACH_HODL_INVOICES_PER_SIDE
while keeping the default at two HTLCs per side.1 parent affbf4f commit a33efc9
12 files changed
Lines changed: 519 additions & 63 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
370 | | - | |
371 | | - | |
| 370 | + | |
| 371 | + | |
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
391 | | - | |
| 391 | + | |
| 392 | + | |
392 | 393 | | |
393 | 394 | | |
394 | 395 | | |
| |||
399 | 400 | | |
400 | 401 | | |
401 | 402 | | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
402 | 411 | | |
403 | 412 | | |
404 | 413 | | |
| |||
0 commit comments