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