good morning!!!!

Skip to content
Snippets Groups Projects
Commit 69acda2c authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

Paranoia check moved

parent 98f21d89
Branches
Tags
No related merge requests found
...@@ -2,8 +2,6 @@ package ethchain ...@@ -2,8 +2,6 @@ package ethchain
import ( import (
"fmt" "fmt"
"github.com/ethereum/eth-go/ethtrie"
"github.com/ethereum/eth-go/ethutil"
"math/big" "math/big"
) )
...@@ -275,20 +273,5 @@ func (self *StateTransition) Eval(script []byte, context *StateObject, typ strin ...@@ -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) { func Call(vm *Vm, closure *Closure, data []byte) (ret []byte, err error) {
ret, _, err = closure.Call(vm, data) 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 return
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment