Repository navigation
Commit ea94edd
tests: wait for the channel_ready retransmission on the node that disconnected
test_reconnect_no_update waited for l1 to log "Retransmitting
channel_ready" after l2's scripted disconnect on sending channel_ready.
channeld, and dualopend in the dual-funding variant, retransmit only
when the node had sent channel_ready before the disconnect, which
lightningd derives from the channel's scid being known. When l2
reaches the funding depth and disconnects before l1 has seen the
block, l1 sends its channel_ready for the first time after the
reconnect, nothing is retransmitted on l1, and the wait times out.
Wait on l2 instead: it has sent channel_ready by the time it
reconnects, whichever node saw the block first. With dual funding
the retransmission comes from l2's dualopend, or from channeld when
l1's channel_ready arrived before l2 reached the depth and dualopend
had already handed the channel over, so the wait does not name the
daemon.
The second wait on l2, after the close, was only ever satisfied by
that same first retransmission: the fee update after lock-in advances
the commitment numbers, after which channel_ready is not retransmitted.
Wait for the reconnect in the closing state instead, which is what
that part of the test covers. l2 is in CHANNELD_SHUTTING_DOWN or
already in CLOSINGD_SIGEXCHANGE then, depending on whether its
channeld reported both shutdowns before the disconnect took it down,
so accept either.
Fixes: #9644
Changelog-None1 parent 1ebc494 commit ea94edd
1 file changed
Lines changed: 17 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
763 | 763 | | |
764 | 764 | | |
765 | 765 | | |
766 | | - | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
767 | 773 | | |
768 | | - | |
769 | | - | |
770 | | - | |
771 | | - | |
| 774 | + | |
772 | 775 | | |
773 | 776 | | |
774 | 777 | | |
775 | 778 | | |
776 | 779 | | |
777 | 780 | | |
778 | 781 | | |
779 | | - | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
780 | 790 | | |
781 | | - | |
| 791 | + | |
782 | 792 | | |
783 | 793 | | |
784 | 794 | | |
| |||
0 commit comments