Skip to content

Commit

Permalink
[checkpoint] Log the size of checkpoint fragment message (#4641)
Browse files Browse the repository at this point in the history
  • Loading branch information
lxfind authored Sep 15, 2022
1 parent e2aa08e commit 5b6fffc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/sui-core/src/consensus_adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -671,14 +671,15 @@ impl CheckpointConsensusAdapter {
let other = fragment.other.auth_signature.authority;
let transaction = ConsensusTransaction::new_checkpoint_message(fragment);
let tracking_id = transaction.get_tracking_id();
let serialized = bincode::serialize(&transaction).expect("Serialize consensus transaction cannot fail");
debug!(
?tracking_id,
?cp_seq,
size=?serialized.len(),
"Checkpoint fragment consensus message created. Proposer: {}, Other: {}",
proposer,
other,
);
let serialized = bincode::serialize(&transaction).expect("Serialize consensus transaction cannot fail");
self.buffer.push_front((serialized, sequence_number));
},

Expand Down

0 comments on commit 5b6fffc

Please sign in to comment.