mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 14:16:44 +00:00
core/statedb: Don't journal the setBalance call when fetching existing state objects
This commit is contained in:
parent
ea15cacd24
commit
a604209662
1 changed files with 2 additions and 2 deletions
|
|
@ -421,9 +421,9 @@ func (self *StateDB) createStateObject(addr common.Address) *StateObject {
|
|||
// Create a new one
|
||||
newSo := self.newStateObject(addr)
|
||||
|
||||
// If it existed set the balance to the new account. This also creates a journal entry.
|
||||
// If it existed set the balance to the new account.
|
||||
if so != nil {
|
||||
newSo.SetBalance(so.data.Balance)
|
||||
newSo.setBalance(so.data.Balance)
|
||||
} else {
|
||||
self.journal = append(self.journal, createAccountChange{account: &addr})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue