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

Function default_ln_port

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

Source from the content-addressed store, hash-verified

10
11
12def default_ln_port(network: str) -> int:
13 network_map = {
14 "bitcoin": 9735,
15 "testnet": 19735,
16 "regtest": 19846,
17 "signet": 39735,
18 "liquid-regtest": 20735,
19 "liquid": 9735,
20 }
21 return network_map[network]
22
23
24def anchor_expected():

Callers 2

test_remote_addrFunction · 0.90
test_statictor_onionsFunction · 0.90

Calls

no outgoing calls

Tested by 2

test_remote_addrFunction · 0.72
test_statictor_onionsFunction · 0.72