refactor(node): remove zk-to-mpt migration cleanup leftovers#936
refactor(node): remove zk-to-mpt migration cleanup leftovers#936
Conversation
Now that the network has fully migrated to MPT, remove temporary dual-geth switch paths, fork boundary batch forcing, and transition-only validation bypasses to simplify node and derivation runtime behavior. Made-with: Cursor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughRemoves Jade/MPT fork upgrade-switch logic and L2Next geth-upgrade support across the node: deletes switch-state, next-client wiring, fork-specific batching override, CLI flags and config fields, and simplifies RetryableClient and related control flow. Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~55 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@node/derivation/derivation.go`:
- Around line 257-262: The log for a failed ChallengeState call omits the
underlying error; update the block around
d.validator.ChallengeState(batchInfo.batchIndex) to include the returned err in
the log (use d.logger.Error/ Errorf/ Errorw as appropriate) so the message
includes the error details and context (e.g., "challenge state failed" plus err
and the batch index), keeping the same control flow and return behavior; locate
symbols d.validator, ChallengeState, ChallengeEnable, d.logger.Error and
batchInfo.batchIndex to make the change.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 62d16add-ccac-4bcf-8a1b-cd392ab5b452
📒 Files selected for processing (8)
.gitignorenode/core/batch.gonode/core/config.gonode/core/executor.gonode/derivation/config.gonode/derivation/derivation.gonode/flags/flags.gonode/types/retryable_client.go
💤 Files with no reviewable changes (4)
- node/core/batch.go
- node/core/config.go
- node/derivation/config.go
- node/flags/flags.go
Include batch index and underlying error in the challenge-state failure log to make debugging easier when challenge submission fails. Made-with: Cursor
Summary
L2Nextconfig/flags, runtime switch logic, andeth_configmigration metadata fetch)forceBatchPointForJadeFork) now that migration is completeTest plan
cd node && go build ./...Made with Cursor
Summary by CodeRabbit