Skip to content

Commit

Permalink
eth/protocols/snap: check storage root existence for hash scheme (eth…
Browse files Browse the repository at this point in the history
  • Loading branch information
rjl493456442 committed Mar 27, 2024
1 parent da7469e commit 304879d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/protocols/snap/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -2201,7 +2201,7 @@ func (s *Syncer) processStorageResponse(res *storageResponse) {
// If the chunk's root is an overflown but full delivery,
// clear the heal request.
accountHash := res.accounts[len(res.accounts)-1]
if root == res.subTask.root && rawdb.HasStorageTrieNode(s.db, accountHash, nil, root) {
if root == res.subTask.root && rawdb.HasTrieNode(s.db, accountHash, nil, root, s.scheme) {
for i, account := range res.mainTask.res.hashes {
if account == accountHash {
res.mainTask.needHeal[i] = false
Expand Down

0 comments on commit 304879d

Please sign in to comment.