Skip to content

Commit

Permalink
fixup use mainDB cache
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny2022da committed Sep 9, 2024
1 parent ada1aa8 commit 55ec699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/state/state_object.go
Original file line number Diff line number Diff line change
Expand Up @@ -1003,7 +1003,7 @@ func (s *stateObject) GetCommittedStateNoUpdate(key common.Hash) common.Hash {
func (s *stateObject) fixUpOriginAndResetPendingStorage() {
if s.db.isParallel && s.db.parallel.isSlotDB {
mainDB := s.db.parallel.baseStateDB
origObj := mainDB.getStateObjectNoUpdate(s.address)
origObj := mainDB.getStateObject(s.address)
s.storageRecordsLock.Lock()
if origObj != nil && origObj.originStorage.Length() != 0 {
// There can be racing issue with CopyForSlot/LightCopy
Expand Down

0 comments on commit 55ec699

Please sign in to comment.