Skip to content

Commit 405b06a

Browse files
committed
trie: goimports fixes
1 parent 8e8e8d6 commit 405b06a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

trie/proof.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ func (t *Trie) Prove(key []byte, fromLevel uint, proofDb ethdb.KeyValueWriter) e
7272
fromLevel--
7373
continue
7474
}
75-
var hn = n
76-
n,hn = hasher.proofHash(n)
75+
var hn node
76+
n, hn = hasher.proofHash(n)
7777
if hash, ok := hn.(hashNode); ok || i == 0 {
7878
// If the node's database encoding is a hash (or is the
7979
// root node), it becomes a proof element.

trie/trie.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ func (t *Trie) Commit(onleaf LeafCallback) (root common.Hash, err error) {
451451
if err != nil {
452452
return common.Hash{}, err
453453
}
454-
if common.BytesToHash(newRoot) != rootHash{
454+
if common.BytesToHash(newRoot) != rootHash {
455455
panic(fmt.Sprintf("Committed root %x != roothash %x", newRoot, rootHash))
456456
}
457457
t.root = newRoot

0 commit comments

Comments
 (0)