mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 13:46:43 +00:00
fix formatting in journal
This commit is contained in:
parent
a8dbc93a2c
commit
156e490d5b
1 changed files with 8 additions and 8 deletions
|
|
@ -110,14 +110,14 @@ func (j *journal) append(entry journalEntry) {
|
|||
func (j *journal) revert(statedb *StateDB, snapshot int) {
|
||||
for i := len(j.entries) - 1; i >= snapshot; i-- {
|
||||
// Undo the changes made by the operation
|
||||
entry := j.entries[i]
|
||||
if addr := entry.dirtied(); addr != nil {
|
||||
if statedb.getStateObject(*addr) == nil {
|
||||
// State object was deleted, recreate it for safe reversion
|
||||
statedb.createObject(*addr)
|
||||
}
|
||||
}
|
||||
entry.revert(statedb)
|
||||
entry := j.entries[i]
|
||||
if addr := entry.dirtied(); addr != nil {
|
||||
if statedb.getStateObject(*addr) == nil {
|
||||
// State object was deleted, recreate it for safe reversion
|
||||
statedb.createObject(*addr)
|
||||
}
|
||||
}
|
||||
entry.revert(statedb)
|
||||
|
||||
// Drop any dirty tracking induced by the change
|
||||
if addr := entry.dirtied(); addr != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue