Skip to content

Conversation

@Galoretka
Copy link

Motivation

missing validation in request async

request_async() in crates/sdk/src/network/prove.rs does not validate strategy compatibility, while run_async() does.
Location:
NetworkProveBuilder::request_async() calls self.prover.request_proof_impl(...) directly without prior validation, unlike NetworkProveBuilder::run_async() which calls validation::validate_strategy_compatibility(...) first (prove.rs, lines 649-653 vs. 590-610).

Solution

Centralize fulfillment strategy vs. network mode validation in NetworkProver::request_proof_impl()

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant