Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
ratankaliani committed Dec 10, 2024
1 parent 101108d commit 78ac454
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
3 changes: 1 addition & 2 deletions proposer/succinct/bin/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,7 @@ async fn get_proof_status(
}
};

// Note: Once network-v2 adds an execution error for reserved, we can use it.

// TODO: Use execution error for reserved once it's added.
let status = status.fulfillment_status();
if status == FulfillmentStatus::Fulfilled {
let proof: SP1ProofWithPublicValues = maybe_proof.unwrap();
Expand Down
7 changes: 4 additions & 3 deletions scripts/utils/bin/fetch_and_save_proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use alloy::{hex, sol_types::SolValue};
use anyhow::Result;
use clap::Parser;
use op_succinct_client_utils::{boot::BootInfoStruct, AGGREGATION_OUTPUTS_SIZE};
use sp1_sdk::{NetworkProverV1, SP1ProofWithPublicValues};
use sp1_sdk::{NetworkProverV2, SP1ProofWithPublicValues};
use std::{env, fs, path::Path};

#[derive(Parser, Debug)]
Expand Down Expand Up @@ -32,10 +32,11 @@ async fn main() -> Result<()> {

let private_key = env::var("SP1_PRIVATE_KEY")?;
let rpc_url = env::var("PROVER_NETWORK_RPC")?;
let prover = NetworkProverV1::new(&private_key, Some(rpc_url.to_string()), false);
let prover = NetworkProverV2::new(&private_key, Some(rpc_url.to_string()), false);

let request_id = hex::decode(&args.request_id)?;
// Fetch the proof
let mut proof: SP1ProofWithPublicValues = prover.wait_proof(&args.request_id, None).await?;
let mut proof: SP1ProofWithPublicValues = prover.wait_proof(&request_id, None).await?;

if args.agg_proof {
let mut raw_boot_info = [0u8; AGGREGATION_OUTPUTS_SIZE];
Expand Down

0 comments on commit 78ac454

Please sign in to comment.