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
648bd224
Commit
648bd224
authored
Nov 13, 2016
by
Jeffrey Wilcke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core/vm/runtime: fixed go vet
parent
0231d8f8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
runtime.go
core/vm/runtime/runtime.go
+9
-1
No files found.
core/vm/runtime/runtime.go
View file @
648bd224
...
@@ -57,7 +57,15 @@ type Config struct {
...
@@ -57,7 +57,15 @@ type Config struct {
// sets defaults on the config
// sets defaults on the config
func
setDefaults
(
cfg
*
Config
)
{
func
setDefaults
(
cfg
*
Config
)
{
if
cfg
.
ChainConfig
==
nil
{
if
cfg
.
ChainConfig
==
nil
{
cfg
.
ChainConfig
=
&
params
.
ChainConfig
{
big
.
NewInt
(
1
),
new
(
big
.
Int
),
new
(
big
.
Int
),
false
,
new
(
big
.
Int
),
common
.
Hash
{},
new
(
big
.
Int
),
new
(
big
.
Int
),
new
(
big
.
Int
)}
cfg
.
ChainConfig
=
&
params
.
ChainConfig
{
ChainId
:
big
.
NewInt
(
1
),
HomesteadBlock
:
new
(
big
.
Int
),
DAOForkBlock
:
new
(
big
.
Int
),
DAOForkSupport
:
false
,
EIP150Block
:
new
(
big
.
Int
),
EIP155Block
:
new
(
big
.
Int
),
EIP158Block
:
new
(
big
.
Int
),
}
}
}
if
cfg
.
Difficulty
==
nil
{
if
cfg
.
Difficulty
==
nil
{
...
...
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