Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
39263b67
Commit
39263b67
authored
Jul 01, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Paranoia
parent
5f5910c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
state_transition.go
ethchain/state_transition.go
+1
-1
config.go
ethutil/config.go
+2
-1
No files found.
ethchain/state_transition.go
View file @
39263b67
...
...
@@ -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
{
var
(
trie
=
context
.
state
.
trie
...
...
ethutil/config.go
View file @
39263b67
...
...
@@ -14,6 +14,7 @@ type config struct {
ExecPath
string
Debug
bool
Paranoia
bool
Ver
string
ClientString
string
Pubkey
[]
byte
...
...
@@ -44,7 +45,7 @@ func ReadConfig(ConfigFile string, Datadir string, Identifier string, EnvPrefix
}
else
{
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)"
)
}
return
Config
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment