Browse Source

trampolines_by_id must return dict (follow-up previous commit)

patch-4
ThomasV 2 years ago
parent
commit
082a50f2bd
  1. 2
      electrum/trampoline.py

2
electrum/trampoline.py

@ -79,6 +79,8 @@ def hardcoded_trampoline_nodes() -> Mapping[str, LNPeerAddr]:
return TRAMPOLINE_NODES_TESTNET
elif constants.net.NET_NAME == "signet":
return TRAMPOLINE_NODES_SIGNET
else:
return {}
def trampolines_by_id():
return dict([(x.pubkey, x) for x in hardcoded_trampoline_nodes().values()])

Loading…
Cancel
Save