Commit deb53a2
committed
WIP Add integration tests for
Add 6 tests covering the v2 cooperative closing flow
(`closing_complete` / `closing_sig`):
- `test_simple_close`: Parameterized happy path (both directions)
- `test_simple_close_dust_closee`: Closee has dust balance,
`closer_output_only` signature used
- `test_simple_close_dust_closer`: Closer has dust balance,
`closee_output_only` signature used
- `test_simple_close_two_sig_variants`: Both `closer_output_only` and
`closer_and_closee_outputs` provided when closer >= closee
- `test_simple_close_v1_fallback`: Falls back to v1 `closing_signed`
when counterparty doesn't support `option_simple_close`
- `test_simple_close_reconnect`: Disconnect/reconnect resets v2
negotiation state and allows protocol to restart
Also adds `get_closing_sig_broadcast` helper to `functional_test_utils.rs`
and `simple_close_exchange_shutdowns` helper to `shutdown_tests.rs`.
Co-Authored-By: HAL 9000
Signed-off-by: Elias Rohrer <dev@tnull.de>option_simple_close cooperative closing1 parent 3f7d75b commit deb53a2
2 files changed
Lines changed: 456 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2240 | 2240 | | |
2241 | 2241 | | |
2242 | 2242 | | |
| 2243 | + | |
| 2244 | + | |
| 2245 | + | |
| 2246 | + | |
| 2247 | + | |
| 2248 | + | |
| 2249 | + | |
| 2250 | + | |
| 2251 | + | |
| 2252 | + | |
| 2253 | + | |
| 2254 | + | |
| 2255 | + | |
| 2256 | + | |
| 2257 | + | |
| 2258 | + | |
| 2259 | + | |
| 2260 | + | |
| 2261 | + | |
| 2262 | + | |
| 2263 | + | |
2243 | 2264 | | |
2244 | 2265 | | |
2245 | 2266 | | |
| |||
0 commit comments