aboutsummaryrefslogtreecommitdiffstats
path: root/state
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-01-30 06:58:43 +0800
committerobscuren <geffobscura@gmail.com>2015-01-30 06:58:43 +0800
commit54927dc0e0b99009f92fbb7b28d71ae20179ce1e (patch)
treea486e2b72ad098162459e978534341d39c035a68 /state
parent705cf6113d5c7cc8cbbbc8201d3c6ea04ae5726b (diff)
downloaddexon-54927dc0e0b99009f92fbb7b28d71ae20179ce1e.tar.gz
dexon-54927dc0e0b99009f92fbb7b28d71ae20179ce1e.tar.zst
dexon-54927dc0e0b99009f92fbb7b28d71ae20179ce1e.zip
Fixed issue with Storage()
* Storage() returned encoded values. They are now decode prior to hexing * Removed old code from state object * Updated coin
Diffstat (limited to 'state')
-rw-r--r--state/state_object.go29
1 files changed, 0 insertions, 29 deletions
diff --git a/state/state_object.go b/state/state_object.go
index 913c57a31..340939a5d 100644
--- a/state/state_object.go
+++ b/state/state_object.go
@@ -121,26 +121,6 @@ func (self *StateObject) SetState(k []byte, value *ethutil.Value) {
self.storage[string(key)] = value.Copy()
}
-/*
-// Iterate over each storage address and yield callback
-func (self *StateObject) EachStorage(cb trie.EachCallback) {
- // First loop over the uncommit/cached values in storage
- for key, value := range self.storage {
- // XXX Most iterators Fns as it stands require encoded values
- encoded := ethutil.NewValue(value.Encode())
- cb(key, encoded)
- }
-
- it := self.State.Trie.NewIterator()
- it.Each(func(key string, value *ethutil.Value) {
- // If it's cached don't call the callback.
- if self.storage[key] == nil {
- cb(key, value)
- }
- })
-}
-*/
-
func (self *StateObject) Sync() {
for key, value := range self.storage {
if value.Len() == 0 {
@@ -150,15 +130,6 @@ func (self *StateObject) Sync() {
self.setAddr([]byte(key), value)
}
-
- /*
- valid, t2 := trie.ParanoiaCheck(self.State.trie, ethutil.Config.Db)
- if !valid {
- statelogger.Infof("Warn: PARANOIA: Different state storage root during copy %x vs %x\n", self.State.Root(), t2.Root())
-
- self.State.trie = t2
- }
- */
}
func (c *StateObject) GetInstr(pc *big.Int) *ethutil.Value {