This repository has been archived by the owner on Sep 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
4,781 additions
and
3,798 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,46 @@ | ||
participant_network = import_module("github.com/kurtosis-tech/eth-network-package/src/participant_network.star") | ||
input_parser = import_module("github.com/kurtosis-tech/eth-network-package/package_io/input_parser.star") | ||
participant_network = import_module( | ||
"github.com/kurtosis-tech/eth-network-package/src/participant_network.star" | ||
) | ||
input_parser = import_module( | ||
"github.com/kurtosis-tech/eth-network-package/package_io/input_parser.star" | ||
) | ||
|
||
static_files = import_module("github.com/kurtosis-tech/eth-network-package/static_files/static_files.star") | ||
genesis_constants = import_module("github.com/kurtosis-tech/eth-network-package/src/prelaunch_data_generator/genesis_constants/genesis_constants.star") | ||
static_files = import_module( | ||
"github.com/kurtosis-tech/eth-network-package/static_files/static_files.star" | ||
) | ||
genesis_constants = import_module( | ||
"github.com/kurtosis-tech/eth-network-package/src/prelaunch_data_generator/genesis_constants/genesis_constants.star" | ||
) | ||
|
||
def run(plan, args = {}): | ||
args_with_right_defaults = input_parser.get_args_with_default_values(args) | ||
|
||
num_participants = len(args_with_right_defaults.participants) | ||
network_params = args_with_right_defaults.network_params | ||
parallel_keystore_generation = args_with_right_defaults.parallel_keystore_generation | ||
def run(plan, args={}): | ||
args_with_right_defaults = input_parser.get_args_with_default_values(args) | ||
|
||
plan.print("Launching participant network with {0} participants and the following network params {1}".format(num_participants, network_params)) | ||
all_participants, cl_genesis_timestamp, genesis_validators_root = participant_network.launch_participant_network(plan, args_with_right_defaults.participants, network_params, args_with_right_defaults.global_client_log_level, parallel_keystore_generation) | ||
num_participants = len(args_with_right_defaults.participants) | ||
network_params = args_with_right_defaults.network_params | ||
parallel_keystore_generation = args_with_right_defaults.parallel_keystore_generation | ||
|
||
plan.print("NODE JSON RPC URI: '{0}:{1}'".format(all_participants[0].el_client_context.ip_addr, all_participants[0].el_client_context.rpc_port_num)) | ||
return all_participants, cl_genesis_timestamp, genesis_validators_root | ||
plan.print( | ||
"Launching participant network with {0} participants and the following network params {1}".format( | ||
num_participants, network_params | ||
) | ||
) | ||
( | ||
all_participants, | ||
cl_genesis_timestamp, | ||
genesis_validators_root, | ||
) = participant_network.launch_participant_network( | ||
plan, | ||
args_with_right_defaults.participants, | ||
network_params, | ||
args_with_right_defaults.global_client_log_level, | ||
parallel_keystore_generation, | ||
) | ||
|
||
plan.print( | ||
"NODE JSON RPC URI: '{0}:{1}'".format( | ||
all_participants[0].el_client_context.ip_addr, | ||
all_participants[0].el_client_context.rpc_port_num, | ||
) | ||
) | ||
return all_participants, cl_genesis_timestamp, genesis_validators_root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
EL_CLIENT_TYPE = struct( | ||
geth="geth", | ||
erigon="erigon", | ||
nethermind="nethermind", | ||
besu="besu", | ||
reth="reth", | ||
ethereumjs="ethereumjs" | ||
geth="geth", | ||
erigon="erigon", | ||
nethermind="nethermind", | ||
besu="besu", | ||
reth="reth", | ||
ethereumjs="ethereumjs", | ||
) | ||
|
||
CL_CLIENT_TYPE = struct( | ||
lighthouse="lighthouse", | ||
teku="teku", | ||
nimbus="nimbus", | ||
prysm="prysm", | ||
lodestar="lodestar" | ||
lighthouse="lighthouse", | ||
teku="teku", | ||
nimbus="nimbus", | ||
prysm="prysm", | ||
lodestar="lodestar", | ||
) | ||
|
||
GLOBAL_CLIENT_LOG_LEVEL = struct( | ||
info="info", | ||
error="error", | ||
warn="warn", | ||
debug="debug", | ||
trace="trace", | ||
info="info", | ||
error="error", | ||
warn="warn", | ||
debug="debug", | ||
trace="trace", | ||
) | ||
|
||
VALIDATING_REWARDS_ACCOUNT = "0x878705ba3f8Bc32FCf7F4CAa1A35E72AF65CF766" | ||
MAX_ENR_ENTRIES = 20 | ||
MAX_ENODE_ENTRIES = 20 | ||
|
||
GENESIS_VALIDATORS_ROOT_PLACEHOLDER = "GENESIS_VALIDATORS_ROOT_PLACEHOLDER" | ||
GENESIS_VALIDATORS_ROOT_PLACEHOLDER = "GENESIS_VALIDATORS_ROOT_PLACEHOLDER" | ||
|
||
DEFAULT_SNOOPER_IMAGE = "parithoshj/json_rpc_snoop:v1.0.0-x86" | ||
|
||
ARCHIVE_MODE = True | ||
ARCHIVE_MODE = True |
Oops, something went wrong.