Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
ratankaliani committed Jan 8, 2025
1 parent d8b3474 commit e2d83cf
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
7 changes: 3 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ CONTRACT_ADDRESS=
# Key for relaying to the contract.
PRIVATE_KEY=

# If you're using the Succinct network, set SP1_PROVER to "network". Otherwise, set it to "local" or "mock".
SP1_PROVER=
# Only required if SP1_PROVER is set to "network".
SP1_PRIVATE_KEY=
NETWORK_PRIVATE_KEY=
# Optional: Set if you're using a custom RPC URL.
NETWORK_RPC_URL=
2 changes: 1 addition & 1 deletion book/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ This guide will walk you through deploying the SP1 Blobstream contract and runni
# If you're using the Succinct network, set SP1_PROVER to "network". Otherwise, set it to "local" or "mock".
export SP1_PROVER={network|local|mock}
# Only required if SP1_PROVER is set "network".
export SP1_PRIVATE_KEY=<SP1_PRIVATE_KEY>
export NETWORK_PRIVATE_KEY=<NETWORK_PRIVATE_KEY>
```

5. Run the SP1 Blobstream operator to update the LC continuously.
Expand Down
8 changes: 4 additions & 4 deletions render.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ services:
rootDir: script
buildCommand: rm -rf build.rs && cargo build --bin operator --release
startCommand: cargo run --bin operator --release
autoDeploy: true
autoDeploy: false
envVars:
- key: CHAIN_ID
value: 1
Expand Down Expand Up @@ -161,7 +161,7 @@ services:
rootDir: script
buildCommand: rm -rf build.rs && cargo build --bin operator --release
startCommand: cargo run --bin operator --release
autoDeploy: true
autoDeploy: false
envVars:
- key: CHAIN_ID
value: 8453
Expand Down Expand Up @@ -190,7 +190,7 @@ services:
rootDir: script
buildCommand: rm -rf build.rs && cargo build --bin operator --release
startCommand: cargo run --bin operator --release
autoDeploy: true
autoDeploy: false
envVars:
- key: CHAIN_ID
value: 42161
Expand Down Expand Up @@ -219,7 +219,7 @@ services:
rootDir: script
buildCommand: rm -rf build.rs && cargo build --bin operator --release
startCommand: cargo run --bin operator --release
autoDeploy: true
autoDeploy: false
envVars:
- key: CHAIN_ID
value: 534352
Expand Down
6 changes: 4 additions & 2 deletions script/bin/operator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ use log::{error, info};
use primitives::get_header_update_verdict;
use reqwest::Url;
use sp1_sdk::{
HashableKey, ProverClient, SP1ProofWithPublicValues, SP1ProvingKey, SP1Stdin, SP1VerifyingKey,
network::FulfillmentStrategy, HashableKey, ProverClient, SP1ProofWithPublicValues,
SP1ProvingKey, SP1Stdin, SP1VerifyingKey,
};
use std::env;
use std::time::Duration;
Expand Down Expand Up @@ -126,9 +127,10 @@ impl SP1BlobstreamOperator {

let prover_client = ProverClient::builder().network().build();

// TODO: Add reserved strategy.
prover_client
.prove(&self.pk, &stdin)
.strategy(FulfillmentStrategy::Reserved)
.skip_simulation(true)
.plonk()
.timeout(Duration::from_secs(PROOF_TIMEOUT_SECONDS))
.run()
Expand Down

0 comments on commit e2d83cf

Please sign in to comment.