Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_framework/util.py
Show First 20 Lines • Show All 265 Lines • ▼ Show 20 Lines | elif time.time() >= time_end: | ||||
"Predicate {} not true after {} seconds".format(predicate_source, timeout)) | "Predicate {} not true after {} seconds".format(predicate_source, timeout)) | ||||
raise RuntimeError('Unreachable') | raise RuntimeError('Unreachable') | ||||
# RPC/P2P connection constants and functions | # RPC/P2P connection constants and functions | ||||
############################################ | ############################################ | ||||
# The maximum number of nodes a single test can spawn | # The maximum number of nodes a single test can spawn | ||||
MAX_NODES = 8 | MAX_NODES = 12 | ||||
# Don't assign rpc or p2p ports lower than this | # Don't assign rpc or p2p ports lower than this | ||||
PORT_MIN = 11000 | PORT_MIN = 11000 | ||||
# The number of ports to "reserve" for p2p and rpc, each | # The number of ports to "reserve" for p2p and rpc, each | ||||
PORT_RANGE = 5000 | PORT_RANGE = 5000 | ||||
class PortSeed: | class PortSeed: | ||||
# Must be initialized with a unique integer for each process | # Must be initialized with a unique integer for each process | ||||
▲ Show 20 Lines • Show All 319 Lines • Show Last 20 Lines |