Skip to content

Commit a0d7830

Browse files
committed
core/state: revert log index when removing logs
1 parent a92d8a2 commit a0d7830

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/state/journal.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ func (ch addLogChange) undo(s *StateDB) {
132132
} else {
133133
s.logs[ch.txhash] = logs[:len(logs)-1]
134134
}
135+
s.logSize--
135136
}
136137

137138
func (ch addPreimageChange) undo(s *StateDB) {

0 commit comments

Comments
 (0)