-
Notifications
You must be signed in to change notification settings - Fork 0
Merge bitcoin/bitcoin#26508: RPC/Blockchain: Minor improvements for scanblocks & scantxoutset docs/errors #1235
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: backport-0.25-batch-488
Are you sure you want to change the base?
Conversation
Partial backport of bitcoin#26508 Only the scantxoutset changes are applicable as Dash does not have the scanblocks RPC function. Co-authored-by: Luke Dashjr <luke-jr+git@utopios.org>
WalkthroughError message for invalid scantxoutset RPC actions made more specific. The thrown JSONRPCError now includes the invalid action value in the message format, changing from "Invalid command" to "Invalid action ''". The corresponding test is updated to expect the new error message format. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: ASSERTIVE Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used📓 Path-based instructions (3)src/**/*.{cpp,h,cc,cxx,hpp}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**⚙️ CodeRabbit configuration file
Files:
test/functional/**/*.py📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🧠 Learnings (1)📓 Common learnings🧬 Code graph analysis (1)src/rpc/blockchain.cpp (2)
🪛 Cppcheck (2.18.0)src/rpc/blockchain.cpp[information] Too many #ifdef configurations - cppcheck only checks 12 configurations. Use --force to check all configurations. For more details, use --enable=information. (toomanyconfigs) ⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
🔇 Additional comments (2)
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 |
Partial backport of bitcoin#26508
Changes
Only the
scantxoutsetchanges are applicable as Dash does not have thescanblocksRPC function.This PR improves the error message for invalid action in
scantxoutset:"Invalid command""Invalid action 'X'"(includes the invalid action name for better debugging)Bitcoin PR Summary
Original Bitcoin PR added:
(not in Dash)scanblocks: Improved error message(not in Dash)scanblocks: Documentation improvementsscantxoutset: Improved error message ✓Testing
test/functional/rpc_scantxoutset.pyto match new error formatSummary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.