Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: cdk node l1infotree sync configuration #380

Merged
merged 2 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions input_parser.star
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ def get_fork_id(zkevm_contracts_image):
fork_name = "elderberry"
if fork_id >= 12:
fork_name = "banana"
# TODO: Add support for durian once released.

return (fork_id, fork_name)

Expand Down
15 changes: 5 additions & 10 deletions templates/trusted-node/cdk-node-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,9 @@ L2URL="http://{{.l2_rpc_name}}{{.deployment_suffix}}:{{.zkevm_rpc_http_port}}"
AggLayerURL="{{.agglayer_url}}"

ForkId = {{.zkevm_rollup_fork_id}}
ContractVersions = "{{.zkevm_rollup_fork_name}}"
IsValidiumMode = {{.is_cdk_validium}}

{{if eq .zkevm_rollup_fork_id "12"}}
ContractVersions = "banana"
{{else if eq .zkevm_rollup_fork_id "13"}}
# Doesn't look like this is needed at the moment, but soon perhaps?
# ContractVersions = "durian"
ContractVersions = "banana"
{{else}}
ContractVersions = "elderberry"
{{end}}

L2Coinbase = "{{.zkevm_l2_sequencer_address}}"
SequencerPrivateKeyPath = "{{or .zkevm_l2_sequencer_keystore_file "/etc/cdk/sequencer.keystore"}}"
SequencerPrivateKeyPassword = "{{.zkevm_l2_keystore_password}}"
Expand Down Expand Up @@ -67,3 +58,7 @@ Outputs = ["stderr"]
CertificateSendInterval = "1m"
CheckSettledInterval = "5s"

[L1InfoTreeSync]
# The initial block number from which to start syncing.
# Default: 0
InitialBlock = {{.zkevm_rollup_manager_block_number}}