Remove old trampoline compatibility bits from invoices
bits 50/51 are now used on the network (as option_zeroconf)
This commit is contained in:
@@ -102,11 +102,7 @@ def is_legacy_relay(invoice_features, r_tags) -> Tuple[bool, List[bytes]]:
|
||||
"""
|
||||
invoice_features = LnFeatures(invoice_features)
|
||||
# trampoline-supporting wallets:
|
||||
# OPTION_TRAMPOLINE_ROUTING_OPT_COMPAT_ECLAIR: old Phoenix/Eclair wallets
|
||||
# OPTION_TRAMPOLINE_ROUTING_OPT_COMPAT_ELECTRUM: old Electrum wallets
|
||||
if (invoice_features.supports(LnFeatures.OPTION_TRAMPOLINE_ROUTING_OPT)
|
||||
or invoice_features.supports(LnFeatures.OPTION_TRAMPOLINE_ROUTING_OPT_COMPAT_ECLAIR)
|
||||
or invoice_features.supports(LnFeatures.OPTION_TRAMPOLINE_ROUTING_OPT_COMPAT_ELECTRUM)):
|
||||
if invoice_features.supports(LnFeatures.OPTION_TRAMPOLINE_ROUTING_OPT:
|
||||
# If there are no r_tags (routing hints) included, the wallet doesn't have
|
||||
# private channels and is probably directly connected to a trampoline node.
|
||||
# Any trampoline node should be able to figure out a path to the receiver and
|
||||
|
||||
Reference in New Issue
Block a user