From 0e2abd6b603dc53bf36722c526fd0d113ca17719 Mon Sep 17 00:00:00 2001 From: jsvisa Date: Wed, 28 May 2025 15:57:11 +0800 Subject: [PATCH] core/tracing: jsontag Signed-off-by: jsvisa --- core/tracing/hooks.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/core/tracing/hooks.go b/core/tracing/hooks.go index b0c99bd59a..126efa4074 100644 --- a/core/tracing/hooks.go +++ b/core/tracing/hooks.go @@ -77,17 +77,17 @@ type BlockEvent struct { // StateUpdate represents a state mutations that occurred during the execution of a block. type StateUpdate struct { - Number uint64 // Block number corresponding to this state snapshot - Hash common.Hash // Block hash corresponding to this state snapshot - Time uint64 // Timestamp indicating when the block was produced - Accounts int64 // Total number of accounts present in the state at this block - Storages int64 // Total number of storage entries across all accounts in the state at this block - Trienodes int64 // Total number of trie nodes present in the state at this block - Codes int64 // Total number of contract codes present in the state at this block, with 32 bytes hash as the identifier - AccountSize int64 // Combined size of all accounts in the state, with 20 bytes address as the identifier - StorageSize int64 // Combined size of all storage entries, with 32 bytes key as the identifier - TrienodeSize int64 // Combined size of all trie nodes, with varying size node path as the identifier (up to 64 bytes) - CodeSize int64 // Combined size of all contract codes in the state, with 20 bytes address as the identifier + Number uint64 `json:"number"` // Block number corresponding to this state snapshot + Hash common.Hash `json:"hash"` // Block hash corresponding to this state snapshot + Time uint64 `json:"time"` // Timestamp indicating when the block was produced + Accounts int64 `json:"accounts"` // Total number of accounts present in the state at this block + Storages int64 `json:"storages"` // Total number of storage entries across all accounts in the state at this block + Trienodes int64 `json:"trienodes"` // Total number of trie nodes present in the state at this block + Codes int64 `json:"codes"` // Total number of contract codes present in the state at this block, with 32 bytes hash as the identifier + AccountSize int64 `json:"accountSize"` // Combined size of all accounts in the state, with 20 bytes address as the identifier + StorageSize int64 `json:"storageSize"` // Combined size of all storage entries, with 32 bytes key as the identifier + TrienodeSize int64 `json:"trienodeSize"` // Combined size of all trie nodes, with varying size node path as the identifier (up to 64 bytes) + CodeSize int64 `json:"codeSize"` // Combined size of all contract codes in the state, with 20 bytes address as the identifier } type (