Update sync.go

This commit is contained in:
Felix Lange 2023-12-08 10:10:21 +01:00 committed by GitHub
parent 4c30df6075
commit 071bab06c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -256,7 +256,6 @@ func NewSync(root common.Hash, database ethdb.KeyValueReader, callback LeafCallb
// parent for completion tracking. The given path is a unique node path in
// hex format and contain all the parent path if it's layered trie node.
func (s *Sync) AddSubTrie(root common.Hash, path []byte, parent common.Hash, parentPath []byte, callback LeafCallback) {
// Short circuit if the trie is empty.
if root == types.EmptyRootHash {
return
}