MCPcopy Create free account
hub / github.com/ElementsProject/lightning / default_ln_port

Function default_ln_port

tests/utils.py:19–29  ·  view source on GitHub ↗
(network: str)

Source from the content-addressed store, hash-verified

17
18
19def default_ln_port(network: str) -> int:
20 network_map = {
21 "bitcoin": 9735,
22 "testnet": 19735,
23 "regtest": 19846,
24 "signet": 39735,
25 "liquid-regtest": 20735,
26 "liquid": 9735,
27 "testnet4": 49735,
28 }
29 return network_map[network]
30
31
32def hex_bits(features):

Callers 2

test_remote_addrFunction · 0.90
test_static_tor_onionsFunction · 0.90

Calls

no outgoing calls

Tested by 2

test_remote_addrFunction · 0.72
test_static_tor_onionsFunction · 0.72