Skip to content

Commit

Permalink
fix: properly log final result when due (#352)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashtare authored Jul 2, 2024
1 parent a591b6f commit 653b7e4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions zero_bin/leader/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,6 @@ pub(crate) async fn client_main(
)
.await?;

if cfg!(feature = "test_only") {
info!("All proof witnesses have been generated successfully.");
} else {
info!("All proofs have been generated successfully.");
}

// If `keep_intermediate_proofs` is not set we only keep the last block
// proof from the interval. It contains all the necessary information to
// verify the whole sequence.
Expand All @@ -66,6 +60,12 @@ pub(crate) async fn client_main(
runtime.close().await?;
let proved_blocks = proved_blocks?;

if cfg!(feature = "test_only") {
info!("All proof witnesses have been generated successfully.");
} else {
info!("All proofs have been generated successfully.");
}

if params.keep_intermediate_proofs {
if params.proof_output_dir.is_some() {
// All proof files (including intermediary) are written to disk and kept
Expand Down

0 comments on commit 653b7e4

Please sign in to comment.