Skip to content

Commit

Permalink
trie: goimports fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
holiman committed Jan 19, 2020
1 parent 44a7069 commit 7547565
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions trie/proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ func (t *Trie) Prove(key []byte, fromLevel uint, proofDb ethdb.KeyValueWriter) e
fromLevel--
continue
}
var hn = n
n,hn = hasher.proofHash(n)
var hn node
n, hn = hasher.proofHash(n)
if hash, ok := hn.(hashNode); ok || i == 0 {
// If the node's database encoding is a hash (or is the
// root node), it becomes a proof element.
Expand Down
2 changes: 1 addition & 1 deletion trie/trie.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ func (t *Trie) Commit(onleaf LeafCallback) (root common.Hash, err error) {
if err != nil {
return common.Hash{}, err
}
if common.BytesToHash(newRoot) != rootHash{
if common.BytesToHash(newRoot) != rootHash {
panic(fmt.Sprintf("Committed root %x != roothash %x", newRoot, rootHash))
}
t.root = newRoot
Expand Down

0 comments on commit 7547565

Please sign in to comment.