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
|
## 🔄 Changes Summary Adds documentation explaining how to run aggkit against a full node (non-archive) instead of an archive node. Covers the three historical archive-node dependencies, which components are compatible, and the only required config change (`InitialLER`). ##⚠️ Breaking Changes None. ## 📋 Config Updates New optional field to avoid a historical L1 contract call at startup: ```toml [L2NetworkConfig] # Omit to query the RollupManager contract (requires archive node). InitialLER = "0x0000000000000000000000000000000000000000000000000000000000000000" ``` `SyncFromInBridges` remains at its default `"auto"` — no manual override needed. ## ✅ Testing - 🤖 **Automatic**: - `make test-unit` - 🖱️ **Manual**: - Doc review only, no code changes. ## 🐞 Issues - Closes #N/A ## 🔗 Related PRs - #1558 feat: add L2NetworkConfig with optional InitialLER override ## 📝 Notes Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>



🚀 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