Skip to content

Commit

Permalink
Parallel2.0: fix a bug of PutSyncPool
Browse files Browse the repository at this point in the history
  • Loading branch information
setunapo committed Oct 12, 2022
1 parent 0aed943 commit e7938e7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/state/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,6 @@ func (s *StateDB) SubRefund(gas uint64) {
// Notably this also returns true for suicided accounts.
func (s *StateDB) Exist(addr common.Address) bool {
exist := s.getStateObject(addr) != nil
log.Info("StateDB Exist", "exist", exist)
return exist
}

Expand Down Expand Up @@ -1144,7 +1143,7 @@ func (s *StateDB) PutSyncPool() {
for key := range s.parallel.codeReadsInSlot {
delete(s.parallel.codeReadsInSlot, key)
}
addressToStructPool.Put(s.parallel.codeReadsInSlot)
addressToBytesPool.Put(s.parallel.codeReadsInSlot)

for key := range s.parallel.codeHashReadsInSlot {
delete(s.parallel.codeHashReadsInSlot, key)
Expand Down

0 comments on commit e7938e7

Please sign in to comment.