aboutsummaryrefslogtreecommitdiffstats
path: root/trie
diff options
context:
space:
mode:
authorWenbiao Zheng <delweng@gmail.com>2018-05-24 20:55:20 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-05-24 20:55:20 +0800
commitd6ed2f67a8cdb07ce7b4eaea93452afb0cdbaa23 (patch)
tree6f7cc281ee2b62c00bc609936a477ba89ad7df1b /trie
parent54294b45b10bbcdfd0cd64292cbd05d66d12ffd5 (diff)
downloaddexon-d6ed2f67a8cdb07ce7b4eaea93452afb0cdbaa23.tar.gz
dexon-d6ed2f67a8cdb07ce7b4eaea93452afb0cdbaa23.tar.zst
dexon-d6ed2f67a8cdb07ce7b4eaea93452afb0cdbaa23.zip
eth, node, trie: fix minor typos (#16802)
Diffstat (limited to 'trie')
-rw-r--r--trie/trie.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/trie/trie.go b/trie/trie.go
index 31a404e3a..30543c549 100644
--- a/trie/trie.go
+++ b/trie/trie.go
@@ -101,7 +101,7 @@ func New(root common.Hash, db *Database) (*Trie, error) {
db: db,
originalRoot: root,
}
- if (root != common.Hash{}) && root != emptyRoot {
+ if root != (common.Hash{}) && root != emptyRoot {
rootnode, err := trie.resolveHash(root[:], nil)
if err != nil {
return nil, err