core/state, trie: port changes from PBSS (#26763)

This commit is contained in:
rjl493456442
2023-03-14 04:50:53 -04:00
committed by GitHub
parent 94ff721911
commit c8a6b7100c
11 changed files with 646 additions and 646 deletions
+1 -1
View File
@@ -970,8 +970,8 @@ func (s *StateDB) Commit(deleteEmptyObjects bool) (common.Hash, error) {
storageTrieNodesUpdated int
storageTrieNodesDeleted int
nodes = trie.NewMergedNodeSet()
codeWriter = s.db.DiskDB().NewBatch()
)
codeWriter := s.db.DiskDB().NewBatch()
for addr := range s.stateObjectsDirty {
if obj := s.stateObjects[addr]; !obj.deleted {
// Write any contract code associated with the state object