core/state: revert log index when removing logs

This commit is contained in:
Felix Lange 2017-09-21 20:44:46 +02:00
parent a92d8a2654
commit a0d783094e

View File

@ -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) {