diff --git a/trie/pure_committer.go b/trie/pure_committer.go index fdf0760cdb..30404b217d 100644 --- a/trie/pure_committer.go +++ b/trie/pure_committer.go @@ -151,7 +151,7 @@ func (h *committer) store(n node, db *Database, force bool, hasVnodeChildren boo // Larger nodes are replaced by their hash and stored in the database. var ( hash, _ = n.cache() - size = 0 + size int ) if hash == nil { if vn, ok := n.(valueNode); ok { @@ -261,7 +261,6 @@ func estimateSize(n node) int { panic(fmt.Sprintf("node type %T", n)) } - return 0 } /**