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
0d89e6c2
Commit
0d89e6c2
authored
Feb 29, 2016
by
Jeffrey Wilcke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/utils, params: homestead block
parent
7cbcae3f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
flags.go
cmd/utils/flags.go
+2
-0
util.go
params/util.go
+5
-1
No files found.
cmd/utils/flags.go
View file @
0d89e6c2
...
...
@@ -672,6 +672,8 @@ func MakeSystemNode(name, version string, extra []byte, ctx *cli.Context) *node.
ethConf
.
Genesis
=
core
.
TestNetGenesisBlock
()
}
state
.
StartingNonce
=
1048576
// (2**20)
// overwrite homestead block
params
.
HomesteadBlock
=
params
.
TestNetHomesteadBlock
case
ctx
.
GlobalBool
(
DevModeFlag
.
Name
)
:
// Override the base network stack configs
...
...
params/util.go
View file @
0d89e6c2
...
...
@@ -18,7 +18,11 @@ package params
import
"math/big"
var
HomesteadBlock
*
big
.
Int
=
big
.
NewInt
(
2000000
)
var
(
TestNetHomesteadBlock
=
big
.
NewInt
(
494000
)
// testnet homestead block
MainNetHomesteadBlock
=
big
.
NewInt
(
2000000
)
// mainnet homestead block
HomesteadBlock
=
MainNetHomesteadBlock
// homestead block used to check against
)
func
IsHomestead
(
blockNumber
*
big
.
Int
)
bool
{
// for unit tests TODO: flip to true after homestead is live
...
...
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