Skip to content

Commit

Permalink
fix: failed to send proof
Browse files Browse the repository at this point in the history
  • Loading branch information
atanmarko committed Jul 9, 2024
1 parent adf00d8 commit 3b7755c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion zero_bin/prover/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ impl BlockProverInput {
pub async fn prove(
self,
runtime: &Runtime,
_previous: Option<impl Future<Output = Result<GeneratedBlockProof>>>,
previous: Option<impl Future<Output = Result<GeneratedBlockProof>>>,
save_inputs_on_error: bool,
) -> Result<GeneratedBlockProof> {
let block_number = self.get_block_number();
Expand All @@ -112,6 +112,12 @@ impl BlockProverInput {
.try_collect::<Vec<_>>()
.await?;

// Wait for previous block proof
let _prev = match previous {
Some(it) => Some(it.await?),
None => None,
};

// Dummy proof to match expected output type.
Ok(GeneratedBlockProof {
b_height: block_number
Expand Down

0 comments on commit 3b7755c

Please sign in to comment.