mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-24 00:39:26 +00:00
Merge pull request #15181 from fjl/state-revert-log-index
core/state: revert log index when removing logs
This commit is contained in:
commit
229bf51f0d
1 changed files with 1 additions and 0 deletions
|
|
@ -132,6 +132,7 @@ func (ch addLogChange) undo(s *StateDB) {
|
||||||
} else {
|
} else {
|
||||||
s.logs[ch.txhash] = logs[:len(logs)-1]
|
s.logs[ch.txhash] = logs[:len(logs)-1]
|
||||||
}
|
}
|
||||||
|
s.logSize--
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ch addPreimageChange) undo(s *StateDB) {
|
func (ch addPreimageChange) undo(s *StateDB) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue