From a0d783094ecb9622559606df0591c8f9dd4231b6 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 21 Sep 2017 20:44:46 +0200 Subject: core/state: revert log index when removing logs --- core/state/journal.go | 1 + 1 file changed, 1 insertion(+) (limited to 'core') diff --git a/core/state/journal.go b/core/state/journal.go index ddb76f1a2..ddc819fe5 100644 --- a/core/state/journal.go +++ b/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) { -- cgit