MCPcopy 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
492def p2p_port(n):
493 assert n <= MAX_NODES
494 return PORT_MIN + n + (MAX_NODES * PortSeed.n) % (PORT_RANGE - 1 - MAX_NODES)
495
496
497def rpc_port(n):

Callers 15

run_testMethod · 0.90
set_test_paramsMethod · 0.90
run_testMethod · 0.90
extra_portMethod · 0.90
run_testMethod · 0.90
set_test_paramsMethod · 0.90
run_testMethod · 0.90
run_testMethod · 0.90
set_test_paramsMethod · 0.90
run_testMethod · 0.90
next_portMethod · 0.90

Calls

no outgoing calls

Tested by 4

connect_nodesMethod · 0.68
startMethod · 0.68
add_p2p_connectionMethod · 0.68