mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
fix issue of deep copy
This commit is contained in:
parent
3440ce6643
commit
04f2200334
1 changed files with 1 additions and 1 deletions
|
|
@ -1259,7 +1259,7 @@ func (s *StateDB) commit(deleteEmptyObjects bool, noStorageWiping bool, blockNum
|
||||||
})
|
})
|
||||||
|
|
||||||
// Step 2: Launch account trie hashing concurrently (CPU only, no I/O).
|
// Step 2: Launch account trie hashing concurrently (CPU only, no I/O).
|
||||||
trieCopy := s.trie
|
trieCopy := s.Copy().trie
|
||||||
workers.Go(func() error {
|
workers.Go(func() error {
|
||||||
accountTrieHash = trieCopy.Hash()
|
accountTrieHash = trieCopy.Hash()
|
||||||
return nil
|
return nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue