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) {
|
func (s *Sync) AddSubTrie(root common.Hash, path []byte, parent common.Hash, parentPath []byte, callback LeafCallback) {
|
||||||
if root == types.EmptyRootHash {
|
if root == types.EmptyRootHash {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
owner, inner := ResolvePath(path)
|
owner, inner := ResolvePath(path)
|
||||||
exist, inconsistent := s.hasNode(owner, inner, root)
|
exist, inconsistent := s.hasNode(owner, inner, root)
|
||||||
if exist {
|
if exist {
|
||||||
|
|
@ -601,7 +601,7 @@ func (s *Sync) children(req *nodeRequest, object node) ([]*nodeRequest, error) {
|
||||||
defer pending.Done()
|
defer pending.Done()
|
||||||
owner, inner := ResolvePath(path)
|
owner, inner := ResolvePath(path)
|
||||||
exist, inconsistent := s.hasNode(owner, inner, hash)
|
exist, inconsistent := s.hasNode(owner, inner, hash)
|
||||||
if exist {
|
if exist {
|
||||||
return
|
return
|
||||||
} else if inconsistent {
|
} else if inconsistent {
|
||||||
// There is a pre-existing node with the wrong hash in DB, remove it.
|
// There is a pre-existing node with the wrong hash in DB, remove it.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue