Skip to content

test: cover scantxoutset scan-object validation errors - #36877

Open
Pranav-error wants to merge 1 commit into
bitcoin:masterfrom
Pranav-error:test-scantxoutset-scanobject
Open

Pranav-error wants to merge 1 commit into
bitcoin:masterfrom
Pranav-error:test-scantxoutset-scanobject

Conversation

@Pranav-error

Copy link
Copy Markdown

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).

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 DrahtBot added the Tests label Nov 15, 2026
@DrahtBot

DrahtBot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

External sites

Reviews

See the guideline and AI policy for information on the review process.
A summary of reviews will appear here.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #36990 (test: replace hard-coded RPC error codes by l0rinc)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants