From 653b7e4ea42cbf77d6b723dd51a2bb41f14919eb Mon Sep 17 00:00:00 2001 From: Robin Salen <30937548+Nashtare@users.noreply.github.com> Date: Wed, 3 Jul 2024 00:58:08 +0900 Subject: [PATCH] fix: properly log final result when due (#352) --- zero_bin/leader/src/client.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/zero_bin/leader/src/client.rs b/zero_bin/leader/src/client.rs index e3be064bc..932e195cc 100644 --- a/zero_bin/leader/src/client.rs +++ b/zero_bin/leader/src/client.rs @@ -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. @@ -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