fix(node): restore validator flag compatibility#1003
Conversation
Map the deprecated --validator flag to layer1 verification so existing validator deployments can upgrade binaries without config changes. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Warning Review limit reached
More reviews will be available in 33 minutes and 45 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses rolling per-developer review limits. Reviews become available again as older review attempts age out of the rolling limit window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughA deprecated ChangesLegacy Validator Mode Alias
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 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 |
Inline the legacy validator alias handling in derivation config so the precedence is obvious at the call site. Co-authored-by: Cursor <cursoragent@cursor.com>
Warn operators when --validator is used or overridden by an explicit derivation verify mode. Co-authored-by: Cursor <cursoragent@cursor.com>
Keep only the deprecation warning for --validator while preserving direct verify-mode override behavior. Co-authored-by: Cursor <cursoragent@cursor.com>
Summary
--validatoras a deprecated compatibility alias.--derivation.verify-mode=layer1so existing validator configs keep working after binary upgrade.Test plan
go test ./node/derivationMade with Cursor
Summary by CodeRabbit
New Features
--validatorCLI flag as a deprecated compatibility alias for verify-mode configurationTests