mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
move set back to account-trie-update block scoping for easier readability
This commit is contained in:
parent
659a98c56a
commit
0d78087e88
1 changed files with 2 additions and 2 deletions
|
|
@ -1159,7 +1159,6 @@ func (s *StateDB) commit(deleteEmptyObjects bool) (*stateUpdate, error) {
|
|||
start = time.Now()
|
||||
root common.Hash
|
||||
workers errgroup.Group
|
||||
set *trienode.NodeSet
|
||||
)
|
||||
// Schedule the account trie first since that will be the biggest, so give
|
||||
// it the most time to crunch.
|
||||
|
|
@ -1172,7 +1171,8 @@ func (s *StateDB) commit(deleteEmptyObjects bool) (*stateUpdate, error) {
|
|||
// code didn't anticipate for.
|
||||
workers.Go(func() error {
|
||||
// Write the account trie changes, measuring the amount of wasted time
|
||||
root, set = s.trie.Commit(true)
|
||||
newroot, set := s.trie.Commit(true)
|
||||
root = newroot
|
||||
|
||||
if err := merge(set); err != nil {
|
||||
return err
|
||||
|
|
|
|||
Loading…
Reference in a new issue