Skip to content

Commit

Permalink
Merge branch 'feat/trie-mutex-refactor' into refactor-trie-constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
BeniaminDrasovean authored Jan 22, 2025
2 parents 4c196d1 + 01f8339 commit 4228472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trie/patriciaMerkleTrie.go
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ func (tr *patriciaMerkleTrie) GetStorageManager() common.StorageManager {

// GetTrieStats will collect and return the statistics for the given rootHash
func (tr *patriciaMerkleTrie) GetTrieStats(address string, rootHash []byte) (common.TrieStatisticsHandler, error) {
if len(rootHash) == 0 || bytes.Equal(rootHash, common.EmptyTrieHash) {
if common.IsEmptyTrie(rootHash) {
return statistics.NewTrieStatistics(), nil
}

Expand Down

0 comments on commit 4228472

Please sign in to comment.