eth, node, trie: fix minor typos (#16802)

This commit is contained in:
Wenbiao Zheng
2018-05-24 20:55:20 +08:00
committed by Péter Szilágyi
parent 54294b45b1
commit d6ed2f67a8
3 changed files with 8 additions and 8 deletions

View File

@ -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