aboutsummaryrefslogtreecommitdiffstats
path: root/state
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-11-19 22:05:08 +0800
committerobscuren <geffobscura@gmail.com>2014-11-19 22:05:08 +0800
commite70529a97785012368e7e0d5b272cccab705e551 (patch)
treeee74d588bda2352d0026f179f2e7a9e8c210e57b /state
parent14e2e488fdf0f4d6ed1a5a48ffbbe883faa7edb6 (diff)
downloadgo-tangerine-e70529a97785012368e7e0d5b272cccab705e551.tar
go-tangerine-e70529a97785012368e7e0d5b272cccab705e551.tar.gz
go-tangerine-e70529a97785012368e7e0d5b272cccab705e551.tar.bz2
go-tangerine-e70529a97785012368e7e0d5b272cccab705e551.tar.lz
go-tangerine-e70529a97785012368e7e0d5b272cccab705e551.tar.xz
go-tangerine-e70529a97785012368e7e0d5b272cccab705e551.tar.zst
go-tangerine-e70529a97785012368e7e0d5b272cccab705e551.zip
Added new iterator and tests
Diffstat (limited to 'state')
-rw-r--r--state/state_object.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/state/state_object.go b/state/state_object.go
index 729e32ae4..f02d1b5ab 100644
--- a/state/state_object.go
+++ b/state/state_object.go
@@ -148,9 +148,7 @@ func (self *StateObject) EachStorage(cb trie.EachCallback) {
func (self *StateObject) Sync() {
for key, value := range self.storage {
- if value.Len() == 0 { // value.BigInt().Cmp(ethutil.Big0) == 0 {
- //data := self.getStorage([]byte(key))
- //fmt.Printf("deleting %x %x 0x%x\n", self.Address(), []byte(key), data)
+ if value.Len() == 0 {
self.State.Trie.Delete(string(key))
continue
}