From a604209662e15eb3d7dda066888b779138212a8c Mon Sep 17 00:00:00 2001 From: Nick Johnson Date: Wed, 5 Oct 2016 10:24:09 +0100 Subject: [PATCH] core/statedb: Don't journal the setBalance call when fetching existing state objects --- core/state/statedb.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/state/statedb.go b/core/state/statedb.go index 458d284836..4c501ec8b3 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -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}) }