From 83806c738ec2adcb4ab4a7df16d9d95112b0ff93 Mon Sep 17 00:00:00 2001 From: Xun Li Date: Wed, 14 Sep 2022 16:47:21 -0700 Subject: [PATCH] [checkpoint] Log the size of checkpoint fragment message --- crates/sui-core/src/consensus_adapter.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/sui-core/src/consensus_adapter.rs b/crates/sui-core/src/consensus_adapter.rs index 2666dd26978fe..0ba8a82624434 100644 --- a/crates/sui-core/src/consensus_adapter.rs +++ b/crates/sui-core/src/consensus_adapter.rs @@ -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)); },