feat: add L2NetworkConfig with optional InitialLER override#1558
feat: add L2NetworkConfig with optional InitialLER override#1558joanestebanr merged 2 commits intodevelopfrom
Conversation
|
Claude finished @joanestebanr's task in 1m 33s —— View job PR Review Complete ✅Reviewed PR #1558: feat: add L2NetworkConfig with optional InitialLER override 🚀 What's NewIntroduces a new 🐛 Bug FixesNone. 📋 Config UpdatesNew optional field under [L2NetworkConfig]
# InitialLER: optional override for the initial Local Exit Root (0x000...000 is a valid value).
# If not set, the value is queried from the RollupManager contract on L1.
# InitialLER = "0xaabbccdd..."Default behavior: Field is omitted (nil) → contract query occurs as before. No migration needed.
|
Introduces a new [L2NetworkConfig] section in the top-level config to hold L2-specific settings. The first field, InitialLER, allows operators to override the initial Local Exit Root without querying the RollupManager contract on L1. A nil value (field absent) preserves the existing behaviour. Note: 0x000...000 is treated as a valid non-nil override. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
016a5fe to
71ae7bf
Compare
|



🚀 What's New
The call to get the initial Local Exit Root from the contract requires an archive node. Using the configurable
InitialLER, we can skip this call.Introduces a new
[L2NetworkConfig]section in the top-level config to hold L2-specific settings. The first field,InitialLER, allows operators to override the initial Local Exit Root without querying the RollupManager contract on L1, and so, let to use an archive-node.L2NetworkConfigstruct inetherman/config/network.go[L2NetworkConfig]section in the mainConfiganddefault.goGetInitialLERincmd/run.goaccepts an optional override; if non-nil, the contract call is skipped🐛 Bug Fixes
None.
📋 Config Updates
New optional field under
[L2NetworkConfig]:Default: not set (field absent → contract is queried as before).
None.
🤖 Generated with Claude Code