-
Notifications
You must be signed in to change notification settings - Fork 66
Optimize block sync performance #432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
- Add batch RPC method to fetch multiple receipts in single request - Inline receipt fetching for small blocks (≤10 txs) to reduce latency - Parallel receipt storage with configurable concurrency limit - Cache workspace data in receiptSync job payload to skip DB lookups - Fallback to sequential fetching if batch request fails 🤖 Generated with [Claude Code](https://claude.ai/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
CodeAnt AI is reviewing your PR. Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
Nitpicks 🔍
|
PR Code Suggestions ✨
|
|
CodeAnt AI finished reviewing your PR. |
- Add fetch availability check with graceful fallback to sequential - Handle authenticated RPC URLs in batch fetch with proper auth headers - Skip workspace caching for orbit workspaces to preserve full context - Add unit tests for inline receipt fetching, cached workspace, and orbit handling - Update mock to include fetchTransactionReceiptsBatch 🤖 Generated with [Claude Code](https://claude.ai/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Only perform inline receipt fetching for public workspaces to match the access control behavior in receiptSync. Private workspaces will queue jobs that get properly rejected by receiptSync. 🤖 Generated with [Claude Code](https://claude.ai/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
CodeAnt AI is running Incremental review Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
User description
Summary
Expected Impact
Files Changed
run/lib/rpc.js: AddedfetchTransactionReceiptsBatch()method with fallback to sequentialrun/jobs/blockSync.js: Inline receipt fetching for small blocks, workspace caching for larger blocksrun/jobs/receiptSync.js: Use cached workspace data when available, lighter DB queriesTest plan
🤖 Generated with Claude Code
CodeAnt-AI Description
Fetch and store transaction receipts in batches for faster block sync
What Changed
Impact
✅ Faster block sync for small blocks (receipts available without extra jobs)✅ Fewer workspace DB queries during receipt processing✅ Shorter time-to-receipt availability for typical blocks💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.