Commit a762d4d
committed
channeld: detect splice on reestablish via funding_tx_index, not txid
is_splice_active compared the peer's my_current_funding_locked txid
against peer->channel->funding.txid, which is wrong: once a splice locks,
funding.txid becomes the splice txid, both sides agree on it, the check
falls through, and channel_ready is incorrectly retransmitted on reconnect.
Resolve the txid to its funding_tx_index (the current channel funding or a
pending splice inflight) and treat > 0 as a splice.
Changelog-Fixed: channeld: correctly detect splice transactions when deciding whether to retransmit `channel_ready` on reconnect.1 parent 2c40355 commit a762d4d
2 files changed
Lines changed: 22 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5645 | 5645 | | |
5646 | 5646 | | |
5647 | 5647 | | |
| 5648 | + | |
| 5649 | + | |
| 5650 | + | |
| 5651 | + | |
| 5652 | + | |
| 5653 | + | |
| 5654 | + | |
| 5655 | + | |
| 5656 | + | |
| 5657 | + | |
| 5658 | + | |
| 5659 | + | |
| 5660 | + | |
| 5661 | + | |
| 5662 | + | |
| 5663 | + | |
| 5664 | + | |
5648 | 5665 | | |
5649 | 5666 | | |
5650 | 5667 | | |
| |||
5974 | 5991 | | |
5975 | 5992 | | |
5976 | 5993 | | |
5977 | | - | |
5978 | | - | |
5979 | | - | |
| 5994 | + | |
| 5995 | + | |
5980 | 5996 | | |
5981 | 5997 | | |
5982 | 5998 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
| |||
104 | 103 | | |
105 | 104 | | |
106 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
107 | 109 | | |
108 | 110 | | |
109 | 111 | | |
| |||
0 commit comments