Browse Source

core/state: revert log index when removing logs

Felix Lange 8 years ago
parent
commit
a0d783094e
1 changed files with 1 additions and 0 deletions
  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) {