aboutsummaryrefslogtreecommitdiffstats
path: root/core/state/state_object.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2018-03-27 20:13:30 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-03-28 14:32:02 +0800
commitd985b9052ae08f2538e6caa7e6b5ef351a00bc3e (patch)
treec1c638b59b210c666d2c42dcf9a8edc341e493e9 /core/state/state_object.go
parent958ed4f3d977b08465915e475e11aaab3d2dc574 (diff)
downloaddexon-d985b9052ae08f2538e6caa7e6b5ef351a00bc3e.tar
dexon-d985b9052ae08f2538e6caa7e6b5ef351a00bc3e.tar.gz
dexon-d985b9052ae08f2538e6caa7e6b5ef351a00bc3e.tar.bz2
dexon-d985b9052ae08f2538e6caa7e6b5ef351a00bc3e.tar.lz
dexon-d985b9052ae08f2538e6caa7e6b5ef351a00bc3e.tar.xz
dexon-d985b9052ae08f2538e6caa7e6b5ef351a00bc3e.tar.zst
dexon-d985b9052ae08f2538e6caa7e6b5ef351a00bc3e.zip
core/state: avoid linear overhead on journal dirty listing
Diffstat (limited to 'core/state/state_object.go')
-rw-r--r--core/state/state_object.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/state/state_object.go b/core/state/state_object.go
index 523bb7150..3c40c2041 100644
--- a/core/state/state_object.go
+++ b/core/state/state_object.go
@@ -141,9 +141,9 @@ func (c *stateObject) touch() {
account: &c.address,
})
if c.address == ripemd {
- //Explicitly put it in the dirty-cache, which is otherwise
- // generated from flattened journals
- c.db.journal.dirtyOverride(c.address)
+ // Explicitly put it in the dirty-cache, which is otherwise generated from
+ // flattened journals.
+ c.db.journal.dirty(c.address)
}
}