Skip to content

Commit

Permalink
fix: issue with empty sp1 key
Browse files Browse the repository at this point in the history
  • Loading branch information
praetoriansentry committed Nov 12, 2024
1 parent 7ec47c6 commit 91dbce2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
6 changes: 2 additions & 4 deletions .github/tests/fork12-pessimistic.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
args:
agglayer_image: ghcr.io/agglayer/agglayer:0.2.0-rc.9
cdk_erigon_node_image: hermeznetwork/cdk-erigon:v2.60.0-beta3
cdk_node_image: nulyjkdhthz/cdk:6d775da5dad55990f534e0190a89613ae64f5ccf
cdk_validium_node_image: 0xpolygon/cdk-validium-node:0.7.0-cdk
cdk_erigon_node_image: hermeznetwork/cdk-erigon:v2.60.0-beta8
zkevm_bridge_proxy_image: haproxy:3.0-bookworm
zkevm_bridge_service_image: hermeznetwork/zkevm-bridge-service:v0.6.0-RC1
zkevm_bridge_ui_image: leovct/zkevm-bridge-ui:multi-network
Expand All @@ -12,5 +10,5 @@ args:
sequencer_type: erigon
erigon_strict_mode: false
zkevm_use_gas_token_contract: false
agglayer_prover_sp1_key: REDACTED
agglayer_prover_sp1_key:
enable_normalcy: true
13 changes: 7 additions & 6 deletions agglayer.star
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def run(plan, args):
(ports, public_ports) = get_agglayer_prover_ports(args)

prover_env_vars = {}
if args["agglayer_prover_sp1_key"] != "":
if "agglayer_prover_sp1_key" in args and args["agglayer_prover_sp1_key"] != None:
prover_env_vars["SP1_PRIVATE_KEY"] = args["agglayer_prover_sp1_key"]

agglayer_prover = plan.add_service(
Expand Down Expand Up @@ -76,11 +76,12 @@ def create_agglayer_prover_config_artifact(plan, args):
src="./templates/bridge-infra/agglayer-prover-config.toml"
)

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


return plan.render_templates(
name="agglayer-prover-config-artifact",
Expand Down

0 comments on commit 91dbce2

Please sign in to comment.