mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
trie: gofmt
This commit is contained in:
parent
071bab06c2
commit
a44aca825c
1 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue