Skip to content

Commit

Permalink
Merge pull request #15 from morph-l2/check_protocol
Browse files Browse the repository at this point in the history
check_protocol_of_chunks in log
  • Loading branch information
anylots authored Jul 30, 2024
2 parents 5b8ccf2 + 1686ccc commit fbc567e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions prover/src/aggregator/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::{
BatchProof, BatchProvingTask, ChunkProof,
};
use aggregator::{ChunkInfo, MAX_AGG_SNARKS};
use anyhow::{bail, Result};
use anyhow::Result;
use sha2::{Digest, Sha256};
use snark_verifier_sdk::Snark;
use std::{env, iter::repeat};
Expand Down Expand Up @@ -48,7 +48,7 @@ impl Prover {
chunk_proofs.iter().enumerate().all(|(i, proof)| {
let result = proof.protocol == self.chunk_protocol;
if !result {
log::error!(
log::warn!(
"Non-match protocol of chunk-proof index-{}: expected = {:x}, actual = {:x}",
i,
Sha256::digest(&self.chunk_protocol),
Expand Down Expand Up @@ -110,7 +110,7 @@ impl Prover {
assert!((1..=MAX_AGG_SNARKS).contains(&real_chunk_count));

if !self.check_protocol_of_chunks(&batch.chunk_proofs) {
bail!("non-match-chunk-protocol: {name}");
log::warn!("non-match-chunk-protocol: {name}");
}
let mut chunk_hashes: Vec<_> = batch
.chunk_proofs
Expand Down

0 comments on commit fbc567e

Please sign in to comment.