aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2017-09-22 02:44:46 +0800
committerFelix Lange <fjl@twurst.com>2017-09-22 02:46:21 +0800
commita0d783094ecb9622559606df0591c8f9dd4231b6 (patch)
tree718c398e5e6f33cc642b3742a5cb9ec8a9b2ff58 /core
parenta92d8a26547c138953665387c57168e68bacdd13 (diff)
downloadgo-tangerine-a0d783094ecb9622559606df0591c8f9dd4231b6.tar
go-tangerine-a0d783094ecb9622559606df0591c8f9dd4231b6.tar.gz
go-tangerine-a0d783094ecb9622559606df0591c8f9dd4231b6.tar.bz2
go-tangerine-a0d783094ecb9622559606df0591c8f9dd4231b6.tar.lz
go-tangerine-a0d783094ecb9622559606df0591c8f9dd4231b6.tar.xz
go-tangerine-a0d783094ecb9622559606df0591c8f9dd4231b6.tar.zst
go-tangerine-a0d783094ecb9622559606df0591c8f9dd4231b6.zip
core/state: revert log index when removing logs
Diffstat (limited to 'core')
-rw-r--r--core/state/journal.go1
1 files changed, 1 insertions, 0 deletions
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) {