def __init__(self, shard_port: str): self.p2p_port = -1 self.rpc_port = -1 self.level = "info" self.index = -1 self.shards = [] self.relayer_executable = tester.get_phore_path("synapserelayer") self.shard_port = shard_port
def __init__(self, beacon_port: str): self.beacon_port = beacon_port self.level = "info" self.index = -1 self.rpc_port = -1 self.p2p_port = -1 self.network_id = "regtest" self.shard_executable = tester.get_phore_path("synapseshard") self.initial_shards = []
def __init__(self, beacon_port: int, shard_port: int, validators: str = "0-255"): self.beacon_port = beacon_port self.shard_port = shard_port self.index = -1 self.networkid = "regtest" self.rootkey = "testnet" self.validators = validators self.validator_executable = tester.get_phore_path("synapsevalidator") self.level = "info" self.rpc_port = -1
def __init__(self, index: int, data_directory: str, p2p_port: int, rpc_port: int): self.datadir = data_directory self.chaincfg = "testnet" self.p2p_port = p2p_port self.rpc_port = rpc_port self.connect = [] self.level = "info" self.index = index self.beacon_executable = tester.get_phore_path("synapsebeacon") self.genesis_time = "+5"
def create_config_file(file_name): with open(tester.get_phore_path("regtest.json"), "r") as regtest_file: regtest_json = regtest_file.read() with open(file_name, "w") as file_to_write: file_to_write.write(regtest_json)