Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ElementsProject/elements
/ p2p_port
Function
p2p_port
test/functional/test_framework/util.py:342–344 ·
view source on GitHub ↗
(n)
Source
from the content-addressed store, hash-verified
340
341
342
def
p2p_port(n):
343
assert n <= MAX_NODES
344
return
PORT_MIN + n + (MAX_NODES * PortSeed.n) % (PORT_RANGE - 1 - MAX_NODES)
345
346
347
def
rpc_port(n):
Callers
9
test_getaddednodeinfo
Method · 0.90
run_test
Method · 0.90
run_test
Method · 0.90
run_test
Method · 0.90
setup_network
Method · 0.90
listen
Method · 0.90
connect_nodes
Method · 0.70
write_config
Function · 0.70
add_p2p_connection
Method · 0.70
Calls
no outgoing calls
Tested by
3
test_getaddednodeinfo
Method · 0.72
connect_nodes
Method · 0.56
add_p2p_connection
Method · 0.56