From 43ae2e210f669027bfc8125dc04a29df43e21e2c Mon Sep 17 00:00:00 2001 From: Aditi Srinivasan Date: Mon, 6 Jan 2025 22:20:10 -0500 Subject: [PATCH] add counts to trie mismatch logs (#198) The transaction `summary` log tag is showing up as empty. Add counts of messages in the transaction and number of transactions to reconcile the information in this tag against. --- src/storage/store/engine.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/storage/store/engine.rs b/src/storage/store/engine.rs index 8ef9004..5e21b2b 100644 --- a/src/storage/store/engine.rs +++ b/src/storage/store/engine.rs @@ -445,6 +445,8 @@ impl ShardEngine { tx_account_root = hex::encode(&snapchain_txn.account_root), source, summary = Self::txn_summary(snapchain_txn), + num_system_messages = snapchain_txn.system_messages.len(), + num_user_messages = snapchain_txn.user_messages.len(), "Account root mismatch" ); return Err(EngineError::HashMismatch); @@ -460,6 +462,7 @@ impl ShardEngine { tx_shard_root = hex::encode(shard_root), source, summary = Self::txns_summary(transactions), + num_txns = transactions.len(), "Shard root mismatch" ); return Err(EngineError::HashMismatch);