mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
trie: goimports fixes
This commit is contained in:
parent
8e8e8d6444
commit
405b06a6a6
2 changed files with 3 additions and 3 deletions
|
|
@ -72,8 +72,8 @@ func (t *Trie) Prove(key []byte, fromLevel uint, proofDb ethdb.KeyValueWriter) e
|
||||||
fromLevel--
|
fromLevel--
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
var hn = n
|
var hn node
|
||||||
n,hn = hasher.proofHash(n)
|
n, hn = hasher.proofHash(n)
|
||||||
if hash, ok := hn.(hashNode); ok || i == 0 {
|
if hash, ok := hn.(hashNode); ok || i == 0 {
|
||||||
// If the node's database encoding is a hash (or is the
|
// If the node's database encoding is a hash (or is the
|
||||||
// root node), it becomes a proof element.
|
// root node), it becomes a proof element.
|
||||||
|
|
|
||||||
|
|
@ -451,7 +451,7 @@ func (t *Trie) Commit(onleaf LeafCallback) (root common.Hash, err error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return common.Hash{}, err
|
return common.Hash{}, err
|
||||||
}
|
}
|
||||||
if common.BytesToHash(newRoot) != rootHash{
|
if common.BytesToHash(newRoot) != rootHash {
|
||||||
panic(fmt.Sprintf("Committed root %x != roothash %x", newRoot, rootHash))
|
panic(fmt.Sprintf("Committed root %x != roothash %x", newRoot, rootHash))
|
||||||
}
|
}
|
||||||
t.root = newRoot
|
t.root = newRoot
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue