fix(tx-submitter): finalize lastFinalized+1 instead of skipping via p… - #1065
Conversation
…finalize A dropped finalize tx left pfinalize ahead of the chain, so the next loop targeted lastFinalized+2 and eth_estimateGas reverted with incorrect previous state root. Only skip when that exact finalize is still pending. AI-Developer: Cursor Grok 4.6 AI-Agent: Cursor AI-Reviewer: Cursor Grok 4.6 Harness-Skill: ai-commit Co-authored-by: Cursor <cursoragent@cursor.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe submitter now detects pending ChangesFinalize index handling
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant Rollup
participant PendingTxs
participant TransactionSubmitter
Rollup->>Rollup: calculate lastFinalized + 1
Rollup->>PendingTxs: check target finalizeBatch
PendingTxs-->>Rollup: return pending status
Rollup->>TransactionSubmitter: submit finalizeBatch when target is not pending
TransactionSubmitter-->>Rollup: retain submitted transaction as pending
Merge Risk: ⚪ Minimal · up to Finalization now targets the next required batch and avoids duplicate pending submissions. The supplied regression coverage addresses the reported skip behavior, with no concrete merge-blocking risk identified. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Warning Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption. 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 |
…finalize
A dropped finalize tx left pfinalize ahead of the chain, so the next loop targeted lastFinalized+2 and eth_estimateGas reverted with incorrect previous state root. Only skip when that exact finalize is still pending.
AI-Developer: Cursor Grok 4.6
AI-Agent: Cursor
AI-Reviewer: Cursor Grok 4.6
Harness-Skill: ai-commit
Summary by CodeRabbit
Bug Fixes
Tests