Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bitcoin/bitcoin
/ p2p_port
Function
p2p_port
test/functional/test_framework/util.py:492–494 ·
view source on GitHub ↗
(n)
Source
from the content-addressed store, hash-verified
490
n = None
491
492
def
p2p_port(n):
493
assert n <= MAX_NODES
494
return
PORT_MIN + n + (MAX_NODES * PortSeed.n) % (PORT_RANGE - 1 - MAX_NODES)
495
496
497
def
rpc_port(n):
Callers
15
test_addnode_getaddednodeinfo
Method · 0.90
run_test
Method · 0.90
set_test_params
Method · 0.90
run_test
Method · 0.90
extra_port
Method · 0.90
run_test
Method · 0.90
set_test_params
Method · 0.90
run_test
Method · 0.90
run_test
Method · 0.90
set_test_params
Method · 0.90
run_test
Method · 0.90
next_port
Method · 0.90
Calls
no outgoing calls
Tested by
4
test_addnode_getaddednodeinfo
Method · 0.72
connect_nodes
Method · 0.68
start
Method · 0.68
add_p2p_connection
Method · 0.68