Commit 39263b67 authored by obscuren's avatar obscuren

Paranoia

parent 5f5910c6
...@@ -268,7 +268,7 @@ func (self *StateTransition) Eval(script []byte, context *StateObject) (ret []by ...@@ -268,7 +268,7 @@ func (self *StateTransition) Eval(script []byte, context *StateObject) (ret []by
} }
*/ */
Paranoia := true // TODO Create a flag for this Paranoia := ethutil.Config.Paranoia
if Paranoia { if Paranoia {
var ( var (
trie = context.state.trie trie = context.state.trie
......
...@@ -14,6 +14,7 @@ type config struct { ...@@ -14,6 +14,7 @@ type config struct {
ExecPath string ExecPath string
Debug bool Debug bool
Paranoia bool
Ver string Ver string
ClientString string ClientString string
Pubkey []byte Pubkey []byte
...@@ -44,7 +45,7 @@ func ReadConfig(ConfigFile string, Datadir string, Identifier string, EnvPrefix ...@@ -44,7 +45,7 @@ func ReadConfig(ConfigFile string, Datadir string, Identifier string, EnvPrefix
} else { } else {
g.ParseAll() g.ParseAll()
} }
Config = &config{ExecPath: Datadir, Debug: true, Ver: "0.5.15", conf: g, Identifier: Identifier} Config = &config{ExecPath: Datadir, Debug: true, Ver: "0.5.15", conf: g, Identifier: Identifier, Paranoia: true}
Config.SetClientString("Ethereum(G)") Config.SetClientString("Ethereum(G)")
} }
return Config return Config
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment