1
0

get_node_alias: allow node_id prefixes for channel backups

This commit is contained in:
ThomasV
2022-07-11 11:30:02 +02:00
parent 36a6fd6311
commit 9b075ba187

View File

@@ -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