core/state: avoid linear overhead on journal dirty listing

This commit is contained in:
Péter Szilágyi
2018-03-27 15:13:30 +03:00
parent 958ed4f3d9
commit d985b9052a
4 changed files with 93 additions and 67 deletions

View File

@ -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)
}
}