aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/state_object.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-16 02:35:55 +0800
committerobscuren <geffobscura@gmail.com>2014-07-16 02:35:55 +0800
commit7a410643ac5dc7cc297cbdb094539761230440d0 (patch)
tree13e3c43b517639510ccb54451daa7e04073f45ca /ethchain/state_object.go
parent34da3b4fa8133a2042919fe344b7bc656fcad4f2 (diff)
downloadgo-tangerine-7a410643ac5dc7cc297cbdb094539761230440d0.tar.gz
go-tangerine-7a410643ac5dc7cc297cbdb094539761230440d0.tar.zst
go-tangerine-7a410643ac5dc7cc297cbdb094539761230440d0.zip
Added/changed logging
Diffstat (limited to 'ethchain/state_object.go')
-rw-r--r--ethchain/state_object.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/ethchain/state_object.go b/ethchain/state_object.go
index 5791c6ed1..889496e91 100644
--- a/ethchain/state_object.go
+++ b/ethchain/state_object.go
@@ -143,6 +143,7 @@ func (self *StateObject) getStorage(k []byte) *ethutil.Value {
func (self *StateObject) setStorage(k []byte, value *ethutil.Value) {
key := ethutil.LeftPadBytes(k, 32)
+ //fmt.Printf("%x %v\n", key, value)
self.storage[string(key)] = value.Copy()
}
@@ -158,9 +159,9 @@ func (self *StateObject) Sync() {
valid, t2 := ethtrie.ParanoiaCheck(self.state.trie)
if !valid {
- self.state.trie = t2
+ statelogger.Infof("Warn: PARANOIA: Different state storage root during copy %x vs %x\n", self.state.trie.Root, t2.Root)
- statelogger.Infoln("Warn: PARANOIA: Different state storage root during copy")
+ self.state.trie = t2
}
}