lnworker: add "endurance" ACINQ testnet node as hardcoded trampoline
This commit is contained in:
@@ -141,13 +141,21 @@ FALLBACK_NODE_LIST_MAINNET = [
|
|||||||
|
|
||||||
|
|
||||||
# hardcoded list
|
# hardcoded list
|
||||||
|
# TODO for some pubkeys, there are multiple network addresses we could try
|
||||||
TRAMPOLINE_NODES_MAINNET = {
|
TRAMPOLINE_NODES_MAINNET = {
|
||||||
'ACINQ': LNPeerAddr(host='34.239.230.56', port=9735, pubkey=bfh('03864ef025fde8fb587d989186ce6a4a186895ee44a926bfc370e2c366597a3f8f')),
|
'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')),
|
'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():
|
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():
|
def trampolines_by_id():
|
||||||
return dict([(x.pubkey, x) for x in hardcoded_trampoline_nodes().values()])
|
return dict([(x.pubkey, x) for x in hardcoded_trampoline_nodes().values()])
|
||||||
|
|||||||
Reference in New Issue
Block a user