mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 22:26:42 +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
|
// Create a new one
|
||||||
newSo := self.newStateObject(addr)
|
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 {
|
if so != nil {
|
||||||
newSo.SetBalance(so.data.Balance)
|
newSo.setBalance(so.data.Balance)
|
||||||
} else {
|
} else {
|
||||||
self.journal = append(self.journal, createAccountChange{account: &addr})
|
self.journal = append(self.journal, createAccountChange{account: &addr})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue