Commit 56321de
committed
Strip splice prototype bit when peering with ACINQ
LDK 0.2.2 renames the splice feature from prototype bit 155 to
production bit 63. ACINQ has already moved to bit 63 and their
eclair stack chokes when both bits are set on the same Init.
We need dual-advertise to keep talking to un-upgraded clients on
bit 155 once the LSP bumps, so hide bit 155 from ACINQ
specifically. ChannelManager's BaseMessageHandler impl of
provided_init_features already receives the counterparty pubkey
but was discarding it; start using it.
This is a no-op until the follow-up commit adds
set_splicing_production_optional(). Today only bit 155 is set,
and stripping it for ACINQ leaves nothing, which matches today's
state (no splice with ACINQ either way).
Refs MDK-7991 parent 9f17217 commit 56321de
1 file changed
Lines changed: 23 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13711 | 13711 | | |
13712 | 13712 | | |
13713 | 13713 | | |
13714 | | - | |
13715 | | - | |
| 13714 | + | |
| 13715 | + | |
| 13716 | + | |
| 13717 | + | |
13716 | 13718 | | |
13717 | 13719 | | |
13718 | 13720 | | |
| |||
15701 | 15703 | | |
15702 | 15704 | | |
15703 | 15705 | | |
| 15706 | + | |
| 15707 | + | |
| 15708 | + | |
| 15709 | + | |
| 15710 | + | |
| 15711 | + | |
| 15712 | + | |
| 15713 | + | |
| 15714 | + | |
| 15715 | + | |
| 15716 | + | |
| 15717 | + | |
| 15718 | + | |
| 15719 | + | |
| 15720 | + | |
| 15721 | + | |
| 15722 | + | |
| 15723 | + | |
| 15724 | + | |
15704 | 15725 | | |
15705 | 15726 | | |
15706 | 15727 | | |
| |||
0 commit comments