From 84f46cf63417c8af49efbbabfe768c5e89e0637d Mon Sep 17 00:00:00 2001 From: guagualvcha <296179868@qq.com> Date: Tue, 12 Oct 2021 11:14:53 +0800 Subject: [PATCH] fix concurrent write seen of subfetcher --- core/state/trie_prefetcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/state/trie_prefetcher.go b/core/state/trie_prefetcher.go index 116302001d..ddecd7a202 100644 --- a/core/state/trie_prefetcher.go +++ b/core/state/trie_prefetcher.go @@ -105,7 +105,7 @@ func (p *triePrefetcher) abortLoop() { func (p *triePrefetcher) close() { for _, fetcher := range p.fetchers { p.abortChan <- fetcher // safe to do multiple times - + <-fetcher.term if metrics.Enabled { if fetcher.root == p.root { p.accountLoadMeter.Mark(int64(len(fetcher.seen)))