Skip to content

Commit

Permalink
add counts to trie mismatch logs (#198)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
aditiharini authored Jan 7, 2025
1 parent 12d2b9c commit 43ae2e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/storage/store/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit 43ae2e2

Please sign in to comment.