From 9b075ba187c23aa801a58598771c23c7f72d1fb7 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Mon, 11 Jul 2022 11:30:02 +0200 Subject: [PATCH] get_node_alias: allow node_id prefixes for channel backups --- electrum/lnworker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/lnworker.py b/electrum/lnworker.py index 84bc671ab..bfa9d8f3e 100644 --- a/electrum/lnworker.py +++ b/electrum/lnworker.py @@ -241,7 +241,7 @@ class LNWorker(Logger, EventListener, NetworkRetryManager[LNPeerAddr]): node_alias = node_info.alias else: for k, v in hardcoded_trampoline_nodes().items(): - if v.pubkey == node_id: + if v.pubkey.startswith(node_id): node_alias = k break return node_alias