Skip to content

Commit

Permalink
fix: various bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
praetoriansentry committed Nov 7, 2024
1 parent 611c112 commit 2804d04
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 16 deletions.
4 changes: 3 additions & 1 deletion agglayer.star
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def create_agglayer_prover_config_artifact(plan, args):

is_cpu_prover_enabled = "false"
is_network_prover_enabled = "true"
if args["agglayer_prover_sp1_key"] != "":
if args["agglayer_prover_sp1_key"] == "":
is_cpu_prover_enabled = "true"
is_network_prover_enabled = "false"

Expand All @@ -94,6 +94,8 @@ def create_agglayer_prover_config_artifact(plan, args):
# ports
"agglayer_prover_port": args["agglayer_prover_port"],
"prometheus_port": args["agglayer_prover_metrics_port"],
"is_cpu_prover_enabled": is_cpu_prover_enabled,
"is_network_prover_enabled": is_network_prover_enabled,
},
)
},
Expand Down
6 changes: 3 additions & 3 deletions cdk_erigon.star
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def run_sequencer(plan, args):
chain_spec=cdk_erigon_chain_spec_artifact,
chain_config=cdk_erigon_chain_config_artifact,
chain_allocs=cdk_erigon_chain_allocs_artifact,
chain_first_bach=cdk_erigon_chain_first_batch_artifact,
chain_first_batch=cdk_erigon_chain_first_batch_artifact,
)
cdk_erigon_package.start_cdk_erigon_sequencer(
plan, args, config_artifacts, "cdk_erigon_sequencer_start_port"
Expand Down Expand Up @@ -145,15 +145,15 @@ def run_rpc(plan, args):
name="cdk-erigon-chain-allocs",
)
cdk_erigon_chain_first_batch_artifact = plan.get_files_artifact(
name="cdk-erigon-chain-first-batch-artifact",
name="cdk-erigon-chain-first-batch",
)

config_artifacts = struct(
config=cdk_erigon_rpc_config_artifact,
chain_spec=cdk_erigon_chain_spec_artifact,
chain_config=cdk_erigon_chain_config_artifact,
chain_allocs=cdk_erigon_chain_allocs_artifact,
chain_first_bach=cdk_erigon_chain_first_batch_artifact,
chain_first_batch=cdk_erigon_chain_first_batch_artifact,
)
cdk_erigon_package.start_cdk_erigon_rpc(
plan, args, config_artifacts, "cdk_erigon_rpc_start_port"
Expand Down
2 changes: 1 addition & 1 deletion input_parser.star
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ DEFAULT_DEPLOYMENT_STAGES = {
DEFAULT_IMAGES = {
"agglayer_image": "ghcr.io/agglayer/agglayer:0.2.0", # https://github.com/agglayer/agglayer/pkgs/container/agglayer-rs
"cdk_erigon_node_image": "hermeznetwork/cdk-erigon:v2.1.1", # https://hub.docker.com/r/hermeznetwork/cdk-erigon/tags
"cdk_node_image": "ghcr.io/0xpolygon/cdk:0.4.0-beta1", # https://github.com/0xpolygon/cdk/pkgs/container/cdk
"cdk_node_image": "ghcr.io/0xpolygon/cdk:0.4.0-beta4", # https://github.com/0xpolygon/cdk/pkgs/container/cdk
"cdk_validium_node_image": "0xpolygon/cdk-validium-node:0.7.0-cdk", # https://hub.docker.com/r/0xpolygon/cdk-validium-node/tags
"zkevm_bridge_proxy_image": "haproxy:3.0-bookworm", # https://hub.docker.com/_/haproxy/tags
"zkevm_bridge_service_image": "hermeznetwork/zkevm-bridge-service:v0.6.0-RC1", # https://hub.docker.com/r/hermeznetwork/zkevm-bridge-service/tags
Expand Down
11 changes: 0 additions & 11 deletions templates/trusted-node/cdk-node-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,6 @@ Environment = "development" # "production" or "development"
Level = "{{.global_log_level}}"
Outputs = ["stderr"]

[Aggregator]
Port = "{{.zkevm_aggregator_port}}"

[Aggregator.DB]
Name = "{{.aggregator_db.name}}"
User = "{{.aggregator_db.user}}"
Password = "{{.aggregator_db.password}}"
Host = "{{.aggregator_db.hostname}}"
Port = "{{.aggregator_db.port}}"
EnableLog = false
MaxConns = 200

[AggSender]
CertificateSendInterval = "1m"
Expand Down

0 comments on commit 2804d04

Please sign in to comment.