trie: gofmt

This commit is contained in:
Felix Lange 2023-12-08 11:21:23 +01:00
parent 071bab06c2
commit a44aca825c

View file

@ -258,7 +258,7 @@ func NewSync(root common.Hash, database ethdb.KeyValueReader, callback LeafCallb
func (s *Sync) AddSubTrie(root common.Hash, path []byte, parent common.Hash, parentPath []byte, callback LeafCallback) {
if root == types.EmptyRootHash {
return
}
}
owner, inner := ResolvePath(path)
exist, inconsistent := s.hasNode(owner, inner, root)
if exist {
@ -601,7 +601,7 @@ func (s *Sync) children(req *nodeRequest, object node) ([]*nodeRequest, error) {
defer pending.Done()
owner, inner := ResolvePath(path)
exist, inconsistent := s.hasNode(owner, inner, hash)
if exist {
if exist {
return
} else if inconsistent {
// There is a pre-existing node with the wrong hash in DB, remove it.