Skip to content

Commit f3dccc8

Browse files
authored
Merge pull request #10347 from accumulator/gossip_cln_feature_workaround
electrum refuses to exchange gossip with CLN nodes, due to missing feature OPTION_CHANNEL_TYPE_OPT
2 parents 55cc27d + 3e4f80a commit f3dccc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

electrum/lnworker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,14 +162,15 @@ class ErrorAddingPeer(Exception): pass
162162

163163

164164
# set some feature flags as baseline for both LNWallet and LNGossip
165-
# note that e.g. DATA_LOSS_PROTECT is needed for LNGossip as many peers require it
165+
# note that e.g. DATA_LOSS_PROTECT and OPTION_CHANNEL_TYPE_OPT are needed for LNGossip as many peers require it
166166
BASE_FEATURES = (
167167
LnFeatures(0)
168168
| LnFeatures.OPTION_DATA_LOSS_PROTECT_OPT
169169
| LnFeatures.OPTION_STATIC_REMOTEKEY_OPT
170170
| LnFeatures.VAR_ONION_OPT
171171
| LnFeatures.PAYMENT_SECRET_OPT
172172
| LnFeatures.OPTION_UPFRONT_SHUTDOWN_SCRIPT_OPT
173+
| LnFeatures.OPTION_CHANNEL_TYPE_OPT
173174
)
174175

175176
# we do not want to receive unrequested gossip (see lnpeer.maybe_save_remote_update)
@@ -182,7 +183,6 @@ class ErrorAddingPeer(Exception): pass
182183
| LnFeatures.BASIC_MPP_OPT
183184
| LnFeatures.OPTION_TRAMPOLINE_ROUTING_OPT_ELECTRUM
184185
| LnFeatures.OPTION_SHUTDOWN_ANYSEGWIT_OPT
185-
| LnFeatures.OPTION_CHANNEL_TYPE_OPT
186186
| LnFeatures.OPTION_SCID_ALIAS_OPT
187187
| LnFeatures.OPTION_SUPPORT_LARGE_CHANNEL_OPT
188188
)

0 commit comments

Comments
 (0)