Skip to content

Commit 229bf51

Browse files
authored
Merge pull request #15181 from fjl/state-revert-log-index
core/state: revert log index when removing logs
2 parents 2ee8859 + a0d7830 commit 229bf51

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)