Closed huyngopt1994 closed 4 weeks ago
https://go.dev/blog/loopvar-preview, in path-base-implementing, we will use the callback function when generating a trie for per task which triggers this issue
task.genTrie = trie.NewStackTrie(func(owner common.Hash, path []byte, hash common.Hash, val []byte) { rawdb.WriteTrieNode(task.genBatch, owner, path, hash, val, s.scheme) })
https://go.dev/blog/loopvar-preview, in path-base-implementing, we will use the callback function when generating a trie for per task which triggers this issue