Explorar o código

core/state: revert log index when removing logs

Felix Lange %!s(int64=8) %!d(string=hai) anos
pai
achega
a0d783094e
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      core/state/journal.go

+ 1 - 0
core/state/journal.go

@@ -132,6 +132,7 @@ func (ch addLogChange) undo(s *StateDB) {
 	} else {
 		s.logs[ch.txhash] = logs[:len(logs)-1]
 	}
+	s.logSize--
 }
 
 func (ch addPreimageChange) undo(s *StateDB) {