The existing tests cover invalid range values but miss a few cases where the scan object itself is malformed. This adds three checks for when the scan object is not a string or object, when desc is missing, and when range has an invalid format. Each case verifies that the RPC returns the expected error (-8).
test: cover scantxoutset scan-object validation errors #36877
pull Pranav-error wants to merge 1 commits into bitcoin:master from Pranav-error:test-scantxoutset-scanobject changing 1 files +8 −0-
Pranav-error commented at 7:07 AM on November 15, 2026: none
-
0b2baf2314
test: cover scantxoutset scan-object validation errors
The existing tests cover invalid range values but miss a few cases where the scan object itself is malformed. This adds three checks for when the scan object is not a string or object, when `desc` is missing, and when `range` has an invalid format. Each case verifies that the RPC returns the expected error (-8).
- DrahtBot added the label Tests on Nov 15, 2026
-
DrahtBot commented at 7:07 AM on November 15, 2026: contributor
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--006a51241073e994b41acfe9ec718e94-->
External sites
- Code coverage & benchmarks: https://corecheck.dev/bitcoin/bitcoin/pulls/36877
- Ralph review <img src=https://review.fish.foo/assets/bitcoin/bitcoin/36877.png alt="Ralph review status"> https://git.fish.foo/bitcoin/bitcoin/pulls/36877#author-ralph
<!--021abf342d371248e50ceaed478a90ca-->
Reviews
See the guideline and AI policy for information on the review process. A summary of reviews will appear here.
<!--5faf32d7da4f0f540f40219e4f7537a3-->
Contributors
Labels