aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-09-26 22:11:46 +0800
committerGitHub <noreply@github.com>2017-09-26 22:11:46 +0800
commit229bf51f0d766707b716f1337e8fde03a2475ce3 (patch)
tree2f55278ec3ae167323446fca377282235f078c80 /core
parent2ee885958b49f8a58c0a7fae8bc62f4561f8ab3f (diff)
parenta0d783094ecb9622559606df0591c8f9dd4231b6 (diff)
downloaddexon-229bf51f0d766707b716f1337e8fde03a2475ce3.tar
dexon-229bf51f0d766707b716f1337e8fde03a2475ce3.tar.gz
dexon-229bf51f0d766707b716f1337e8fde03a2475ce3.tar.bz2
dexon-229bf51f0d766707b716f1337e8fde03a2475ce3.tar.lz
dexon-229bf51f0d766707b716f1337e8fde03a2475ce3.tar.xz
dexon-229bf51f0d766707b716f1337e8fde03a2475ce3.tar.zst
dexon-229bf51f0d766707b716f1337e8fde03a2475ce3.zip
Merge pull request #15181 from fjl/state-revert-log-index
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) {