electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 0a5b714643c6bd1479ede01dd24c5d18981a8029
parent 52eb9dcad938de3f09300e2f0b5256ac88d1f336
Author: SomberNight <somber.night@protonmail.com>
Date:   Wed, 24 Feb 2021 13:38:04 +0100

lnworker: add "endurance" ACINQ testnet node as hardcoded trampoline

Diffstat:
Melectrum/lnworker.py | 10+++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/electrum/lnworker.py b/electrum/lnworker.py @@ -141,13 +141,21 @@ FALLBACK_NODE_LIST_MAINNET = [ # hardcoded list +# TODO for some pubkeys, there are multiple network addresses we could try TRAMPOLINE_NODES_MAINNET = { 'ACINQ': LNPeerAddr(host='34.239.230.56', port=9735, pubkey=bfh('03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f')), 'Electrum trampoline': LNPeerAddr(host='144.76.99.209', port=9740, pubkey=bfh('03ecef675be448b615e6176424070673ef8284e0fd19d8be062a6cb5b130a0a0d1')), } +TRAMPOLINE_NODES_TESTNET = { + 'endurance': LNPeerAddr(host='34.250.234.192', port=9735, pubkey=bfh('03933884aaf1d6b108397e5efe5c86bcf2d8ca8d2f700eda99db9214fc2712b134')), +} def hardcoded_trampoline_nodes(): - return TRAMPOLINE_NODES_MAINNET if constants.net in (constants.BitcoinMainnet, ) else {} + if constants.net in (constants.BitcoinMainnet, ): + return TRAMPOLINE_NODES_MAINNET + if constants.net in (constants.BitcoinTestnet, ): + return TRAMPOLINE_NODES_TESTNET + return {} def trampolines_by_id(): return dict([(x.pubkey, x) for x in hardcoded_trampoline_nodes().values()])