eth/protocols/snap: add comments

This commit is contained in:
Gary Rong 2024-04-10 10:20:03 +08:00
parent e66eb890af
commit 87786d2845

View file

@ -1975,6 +1975,10 @@ func (s *Syncer) processAccountResponse(res *accountResponse) {
resumed[res.hashes[i]] = struct{}{}
largeStorageResumedGauge.Inc(1)
} else {
// It's possible that in the hash scheme, the storage, along
// with the trie nodes of the given root, is already present
// in the database. Schedule the storage task anyway to simplify
// the logic here.
res.task.stateTasks[res.hashes[i]] = account.Root
}
res.task.needState[i] = true