Skip to content

Commit

Permalink
fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
smtmfft committed Apr 12, 2024
1 parent 14ec2af commit 4c0e4a9
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion host/src/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ pub async fn execute<D: Prover>(
.map_err(|e| HostError::GuestError(e.to_string()));
measurement.stop_with("=> Proof generated");
memory::print_stats("Prover peak memory used: ");

total_proving_time.stop_with("====> Complete proof generated");
res
}
Expand Down
2 changes: 1 addition & 1 deletion host/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ use std::{alloc, fmt::Debug, fs::File, io::BufReader, path::PathBuf};

use anyhow::Result;
use cap::Cap;
use env_logger;
use serde::{Deserialize, Serialize};
use serde_json::Value;
use server::serve;
Expand All @@ -36,7 +37,6 @@ use tracing_appender::{
rolling::{Builder, Rotation},
};
use tracing_subscriber::FmtSubscriber;
use env_logger;

#[global_allocator]
static ALLOCATOR: Cap<alloc::System> = Cap::new(alloc::System, usize::max_value());
Expand Down
3 changes: 2 additions & 1 deletion provers/risc0/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ pub async fn maybe_prove<I: Serialize, O: Eq + Debug + Serialize + DeserializeOw
expected_output,
assumption_uuids.clone(),
)
.await {
.await
{
Ok((receipt_uuid, receipt)) => {
break (receipt_uuid, receipt, false);
}
Expand Down
6 changes: 4 additions & 2 deletions provers/risc0/src/snarks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ use std::{str::FromStr, sync::Arc};

use alloy_primitives::U256;
use alloy_sol_types::{sol, SolValue};
use risc0_zkvm::Groth16Seal;
use bonsai_sdk::alpha::responses::SnarkReceipt;
use ethers_contract::abigen;
use ethers_core::types::H160;
use ethers_providers::{Http, Provider, RetryClient};
use risc0_zkvm::sha::{Digest, Digestible};
use risc0_zkvm::{
sha::{Digest, Digestible},
Groth16Seal,
};
use tracing::{error as tracing_err, info as tracing_info};

sol!(
Expand Down

0 comments on commit 4c0e4a9

Please sign in to comment.