diff options
author | obscuren <geffobscura@gmail.com> | 2014-07-15 06:25:27 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-07-15 06:25:27 +0800 |
commit | 69acda2c255b098a015e17432b9bffd9010d841d (patch) | |
tree | 5cf47a229aa3411b5d2d234a50f1325aba74e276 | |
parent | 98f21d8973398ccf58a762788a1972ef16213de5 (diff) | |
download | dexon-69acda2c255b098a015e17432b9bffd9010d841d.tar.gz dexon-69acda2c255b098a015e17432b9bffd9010d841d.tar.zst dexon-69acda2c255b098a015e17432b9bffd9010d841d.zip |
Paranoia check moved
-rw-r--r-- | ethchain/state_transition.go | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/ethchain/state_transition.go b/ethchain/state_transition.go index 314d858f2..8cface9e8 100644 --- a/ethchain/state_transition.go +++ b/ethchain/state_transition.go @@ -2,8 +2,6 @@ package ethchain import ( "fmt" - "github.com/ethereum/eth-go/ethtrie" - "github.com/ethereum/eth-go/ethutil" "math/big" ) @@ -275,20 +273,5 @@ func (self *StateTransition) Eval(script []byte, context *StateObject, typ strin func Call(vm *Vm, closure *Closure, data []byte) (ret []byte, err error) { ret, _, err = closure.Call(vm, data) - if ethutil.Config.Paranoia { - var ( - context = closure.object - trie = context.state.trie - ) - - valid, t2 := ethtrie.ParanoiaCheck(trie) - if !valid { - // TODO FIXME ASAP - context.state.trie = t2 - - statelogger.Infoln("Warn: PARANOIA: Different state object roots during copy") - } - } - return } |