Skip to content

Commit

Permalink
Merge pull request #2632 from dusk-network/header_log
Browse files Browse the repository at this point in the history
consensus: improve log for candidate generation
  • Loading branch information
herr-seppia authored Oct 9, 2024
2 parents f2e0282 + cbf7094 commit f648276
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions consensus/src/proposal/block_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ impl<T: Operations> Generator<T> {
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())
}

Expand Down
1 change: 1 addition & 0 deletions node-data/src/ledger/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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", &timestamp)
.field("prev_block_hash", &to_str(&self.prev_block_hash))
.field("seed", &to_str(self.seed.inner()))
Expand Down

0 comments on commit f648276

Please sign in to comment.