Commit 8de1741
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 03a3d78 commit 8de1741
2 files changed
Lines changed: 28 additions & 13 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 | | |
| |||
5967 | 5984 | | |
5968 | 5985 | | |
5969 | 5986 | | |
5970 | | - | |
5971 | | - | |
5972 | | - | |
5973 | | - | |
5974 | | - | |
5975 | | - | |
5976 | | - | |
5977 | | - | |
5978 | | - | |
5979 | | - | |
5980 | | - | |
5981 | 5987 | | |
5982 | 5988 | | |
5983 | 5989 | | |
| |||
5996 | 6002 | | |
5997 | 6003 | | |
5998 | 6004 | | |
5999 | | - | |
| 6005 | + | |
| 6006 | + | |
| 6007 | + | |
| 6008 | + | |
| 6009 | + | |
| 6010 | + | |
| 6011 | + | |
| 6012 | + | |
| 6013 | + | |
| 6014 | + | |
| 6015 | + | |
6000 | 6016 | | |
6001 | 6017 | | |
6002 | 6018 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
| |||
0 commit comments