Update trie_prefetcher.go

This commit is contained in:
rjl493456442 2024-08-26 20:21:46 +08:00 committed by GitHub
parent 4d4e50887c
commit 8decf6aa43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -330,7 +330,8 @@ func (sf *subfetcher) terminate(async bool) {
// openTrie resolves the target trie from database for prefetching. // openTrie resolves the target trie from database for prefetching.
func (sf *subfetcher) openTrie() error { func (sf *subfetcher) openTrie() error {
// Open the verkle tree if the sub-fetcher is in verkle mode // Open the verkle tree if the sub-fetcher is in verkle mode. Note, there is
// only a single fetcher for verkle.
if sf.db.TrieDB().IsVerkle() { if sf.db.TrieDB().IsVerkle() {
tr, err := sf.db.OpenTrie(sf.state) tr, err := sf.db.OpenTrie(sf.state)
if err != nil { if err != nil {