Skip to content

Commit 5d5962a

Browse files
committed
track the empty slot as origin value
1 parent 3429af7 commit 5d5962a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

core/state/state_object.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ func (s *stateObject) GetCommittedState(key common.Hash) common.Hash {
203203
// have been handles via pendingStorage above.
204204
// 2) we don't have new values, and can deliver empty response back
205205
if _, destructed := s.db.stateObjectsDestruct[s.address]; destructed {
206+
s.originStorage[key] = common.Hash{} // track the empty slot as origin value
206207
return common.Hash{}
207208
}
208209
// If no live objects are available, attempt to use snapshots

0 commit comments

Comments
 (0)