Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
lyfsn committed Dec 11, 2023
1 parent 554c65f commit 8104dc8
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
54 changes: 27 additions & 27 deletions local-deployment/main.star
Original file line number Diff line number Diff line change
Expand Up @@ -52,37 +52,37 @@ def run(plan, args):
)

# Spin up a local ethereum testnet
all_participants, cl_genesis_timestamp, genesis_validators_root = eth_network_module.run(plan, args)
# all_participants, cl_genesis_timestamp, genesis_validators_root = eth_network_module.run(plan, args)

all_el_client_contexts = []
all_cl_client_contexts = []
for participant in all_participants:
all_el_client_contexts.append(participant.el_client_context)
all_cl_client_contexts.append(participant.cl_client_context)
# all_el_client_contexts = []
# all_cl_client_contexts = []
# for participant in all_participants:
# all_el_client_contexts.append(participant.el_client_context)
# all_cl_client_contexts.append(participant.cl_client_context)

fuzz_target = "http://{0}:{1}".format(
all_el_client_contexts[0].ip_addr,
all_el_client_contexts[0].rpc_port_num,
)
# fuzz_target = "http://{0}:{1}".format(
# all_el_client_contexts[0].ip_addr,
# all_el_client_contexts[0].rpc_port_num,
# )

if args["start_tx_spammer"]:
plan.print("Launching transaction spammer")
transaction_spammer.launch_transaction_spammer(plan, genesis_constants.PRE_FUNDED_ACCOUNTS, fuzz_target, args_with_right_defaults.tx_spammer_params, network_params.electra_fork_epoch)
plan.print("Succesfully launched transaction spammer")
# if args["start_tx_spammer"]:
# plan.print("Launching transaction spammer")
# transaction_spammer.launch_transaction_spammer(plan, genesis_constants.PRE_FUNDED_ACCOUNTS, fuzz_target, args_with_right_defaults.tx_spammer_params, network_params.electra_fork_epoch)
# plan.print("Succesfully launched transaction spammer")

if args["start_blob_spammer"]:
plan.print("Launching Blob spammer")
blob_spammer.launch_blob_spammer(
plan,
genesis_constants.PRE_FUNDED_ACCOUNTS,
fuzz_target,
all_cl_client_contexts[0],
network_params.deneb_fork_epoch,
network_params.seconds_per_slot,
network_params.slots_per_epoch,
network_params.genesis_delay,
)
plan.print("Succesfully launched blob spammer")
# if args["start_blob_spammer"]:
# plan.print("Launching Blob spammer")
# blob_spammer.launch_blob_spammer(
# plan,
# genesis_constants.PRE_FUNDED_ACCOUNTS,
# fuzz_target,
# all_cl_client_contexts[0],
# network_params.deneb_fork_epoch,
# network_params.seconds_per_slot,
# network_params.slots_per_epoch,
# network_params.genesis_delay,
# )
# plan.print("Succesfully launched blob spammer")


def new_config_template_data(cl_node_info, el_uri, lbt_host, lbt_port, db_host, db_port, redis_uri):
Expand Down
2 changes: 1 addition & 1 deletion local-deployment/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fn_start() {
bash provision-explorer-config.sh
docker compose --profile=build-once run build-once # build once before starting all services to prevent multiple parallel builds
docker compose up -d
echo "Waiting for explorer to start, then browse http://localhost:8080"
echo "Waiting for explorer to start, then browse http://localhost:8099"
}

fn_stop() {
Expand Down

0 comments on commit 8104dc8

Please sign in to comment.