diff options
author | obscuren <geffobscura@gmail.com> | 2014-07-02 23:47:33 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-07-02 23:47:33 +0800 |
commit | 2f9bc2ab754ff85235ebb0b0b41b9b36ef30253a (patch) | |
tree | 0e6077b4d4bcae2318e5a902318c84fa59ffaec0 /ethchain | |
parent | 8de099ae753b2ea427a0f43abbd04019c5f76ddf (diff) | |
download | go-tangerine-2f9bc2ab754ff85235ebb0b0b41b9b36ef30253a.tar go-tangerine-2f9bc2ab754ff85235ebb0b0b41b9b36ef30253a.tar.gz go-tangerine-2f9bc2ab754ff85235ebb0b0b41b9b36ef30253a.tar.bz2 go-tangerine-2f9bc2ab754ff85235ebb0b0b41b9b36ef30253a.tar.lz go-tangerine-2f9bc2ab754ff85235ebb0b0b41b9b36ef30253a.tar.xz go-tangerine-2f9bc2ab754ff85235ebb0b0b41b9b36ef30253a.tar.zst go-tangerine-2f9bc2ab754ff85235ebb0b0b41b9b36ef30253a.zip |
Removed old code
Diffstat (limited to 'ethchain')
-rw-r--r-- | ethchain/state.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ethchain/state.go b/ethchain/state.go index 3d05ff582..7ddf7916f 100644 --- a/ethchain/state.go +++ b/ethchain/state.go @@ -93,10 +93,6 @@ func (self *State) ResetStateObject(stateObject *StateObject) { func (self *State) UpdateStateObject(stateObject *StateObject) { addr := stateObject.Address() - if self.stateObjects[string(addr)] == nil { - self.stateObjects[string(addr)] = stateObject - } - ethutil.Config.Db.Put(ethcrypto.Sha3Bin(stateObject.Script()), stateObject.Script()) self.trie.Update(string(addr), string(stateObject.RlpEncode())) @@ -131,7 +127,7 @@ func (self *State) GetOrNewStateObject(addr []byte) *StateObject { } func (self *State) NewStateObject(addr []byte) *StateObject { - //statelogger.Infof("(+) %x\n", addr) + statelogger.Infof("(+) %x\n", addr) stateObject := NewStateObject(addr) self.stateObjects[string(addr)] = stateObject |