diff --git a/consensus/src/proposal/block_generator.rs b/consensus/src/proposal/block_generator.rs index e6f3684720..2f08e03d86 100644 --- a/consensus/src/proposal/block_generator.rs +++ b/consensus/src/proposal/block_generator.rs @@ -62,12 +62,12 @@ impl Generator { dur = format!("{:?}ms", start.elapsed().as_millis()), ); - debug!("block: {:?}", &candidate); - let mut candidate = Candidate { candidate }; candidate.sign(&ru.secret_key, ru.pubkey_bls.inner()); + debug!(event = "candidate signed", header = ?candidate.header()); + Ok(candidate.into()) } diff --git a/node-data/src/ledger/header.rs b/node-data/src/ledger/header.rs index a4d268edbe..a4b579f8d0 100644 --- a/node-data/src/ledger/header.rs +++ b/node-data/src/ledger/header.rs @@ -88,6 +88,7 @@ impl std::fmt::Debug for Header { f.debug_struct("Header") .field("version", &self.version) .field("height", &self.height) + .field("iteration", &self.iteration) .field("timestamp", ×tamp) .field("prev_block_hash", &to_str(&self.prev_block_hash)) .field("seed", &to_str(self.seed.inner()))