Skip to content

[CT-76] /verify/batch has no test for partial failure within a batch #1200

Description

@mftee

Overview

contract/src/handlers/verify.rs (284 lines) implements the batch verification endpoint from the README's documented routes, but it's unclear from the existing coverage whether a batch containing a mix of valid and invalid/not-found hashes returns a per-item result set, or fails the whole batch on the first bad entry.

Tasks

  • Confirm/implement per-item results for /verify/batch so one invalid hash doesn't fail the whole batch
  • Add a test submitting a batch with both valid and invalid hashes and asserting each gets its own correct result

Acceptance Criteria

  • A batch verify request with mixed valid/invalid hashes returns a distinct, correct result per item

Notes for Contributors

Comment below to be assigned.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programbugSomething isn't workingcontract

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions