Skip to content

Commit 13dbe4d

Browse files
authored
feat: enable checkpoint sync for public networks (#935)
1 parent c56fd46 commit 13dbe4d

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/package_io/input_parser.star

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,6 +860,16 @@ def default_input_args(input_args):
860860
participants = []
861861

862862
participants_matrix = []
863+
864+
if (
865+
"network_params" in input_args
866+
and "network" in input_args["network_params"]
867+
and input_args["network_params"]["network"] in constants.PUBLIC_NETWORKS
868+
):
869+
checkpoint_sync_enabled = True
870+
else:
871+
checkpoint_sync_enabled = False
872+
863873
return {
864874
"participants": participants,
865875
"participants_matrix": participants_matrix,
@@ -878,7 +888,7 @@ def default_input_args(input_args):
878888
"global_node_selectors": {},
879889
"use_remote_signer": False,
880890
"keymanager_enabled": False,
881-
"checkpoint_sync_enabled": False,
891+
"checkpoint_sync_enabled": checkpoint_sync_enabled,
882892
"checkpoint_sync_url": "",
883893
"ethereum_genesis_generator_params": get_default_ethereum_genesis_generator_params(),
884894
"port_publisher": {

0 commit comments

Comments
 (0)