Skip to content

Commit f4e7ffd

Browse files
committed
lnworker: set OPTION_ONION_MESSAGE_OPT feature if we are forwarding.
1 parent 95309e6 commit f4e7ffd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

electrum/lnworker.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,8 @@ def __init__(self, wallet: 'Abstract_Wallet', xprv):
869869
features |= LnFeatures.OPTION_ANCHORS_ZERO_FEE_HTLC_OPT
870870
if self.config.ACCEPT_ZEROCONF_CHANNELS:
871871
features |= LnFeatures.OPTION_ZEROCONF_OPT
872+
if self.config.EXPERIMENTAL_LN_FORWARD_PAYMENTS or self.config.EXPERIMENTAL_LN_FORWARD_TRAMPOLINE_PAYMENTS:
873+
features |= LnFeatures.OPTION_ONION_MESSAGE_OPT
872874
if self.config.EXPERIMENTAL_LN_FORWARD_PAYMENTS and self.config.LIGHTNING_USE_GOSSIP:
873875
features |= LnFeatures.GOSSIP_QUERIES_OPT # signal we have gossip to fetch
874876
LNWorker.__init__(self, self.node_keypair, features, config=self.config)

0 commit comments

Comments
 (0)