Skip to content

Commit

Permalink
chore(consensus): display block hash as hex instead of dec
Browse files Browse the repository at this point in the history
  • Loading branch information
asmaastarkware committed Oct 27, 2024
1 parent 1831a42 commit f04eb04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ impl ConsensusContext for PapyrusConsensusContext {
precommits: Vec<Vote>,
) -> Result<(), ConsensusError> {
let height = precommits[0].height;
info!("Finished consensus for height: {height}. Agreed on block: {:}", block);
info!("Finished consensus for height: {height}. Agreed on block: {:#064x}", block.0);
if let Some(sender) = &mut self.sync_broadcast_sender {
sender.broadcast_message(precommits[0].clone()).await?;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ impl ConsensusContext for SequencerConsensusContext {
precommits: Vec<Vote>,
) -> Result<(), ConsensusError> {
let height = precommits[0].height;
info!("Finished consensus for height: {height}. Agreed on block: {:}", block);
info!("Finished consensus for height: {height}. Agreed on block: {:#064x}", block.0);

// TODO(matan): Broadcast the decision to the network.

Expand Down

0 comments on commit f04eb04

Please sign in to comment.