You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add L2NetworkConfig with optional InitialLER override (#1558)
## π 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.
- New `L2NetworkConfig` struct in `etherman/config/network.go`
- New `[L2NetworkConfig]` section in the main `Config` and `default.go`
- `GetInitialLER` in `cmd/run.go` accepts an optional override; if
non-nil, the contract call is skipped
- Logs the resolved initial LER on startup
## π Bug Fixes
None.
## π Config Updates
New optional field under `[L2NetworkConfig]`:
```toml
[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: not set (field absent β contract is queried as before).
## β οΈ Breaking Changes
None.
π€ Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments