mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
Update trie_prefetcher.go
This commit is contained in:
parent
4d4e50887c
commit
8decf6aa43
1 changed files with 2 additions and 1 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue