MCPcopy Create free account
hub / github.com/ElementsProject/elements / rpc_port

Function rpc_port

test/functional/test_framework/util.py:347–348  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

345
346
347def rpc_port(n):
348 return PORT_MIN + PORT_RANGE + n + (MAX_NODES * PortSeed.n) % (PORT_RANGE - 1 - MAX_NODES)
349
350
351def rpc_url(datadir, i, chain, rpchost):

Callers 6

run_testMethod · 0.90
run_testMethod · 0.90
run_testMethod · 0.90
setup_networkMethod · 0.90
rpc_urlFunction · 0.70
write_configFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected