good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
0d89e6c2
Commit
0d89e6c2
authored
Feb 29, 2016
by
Jeffrey Wilcke
Browse files
Options
Downloads
Patches
Plain Diff
cmd/utils, params: homestead block
parent
7cbcae3f
Loading
Loading
Loading
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmd/utils/flags.go
+2
-0
2 additions, 0 deletions
cmd/utils/flags.go
params/util.go
+5
-1
5 additions, 1 deletion
params/util.go
with
7 additions
and
1 deletion
cmd/utils/flags.go
+
2
−
0
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
...
...
This diff is collapsed.
Click to expand it.
params/util.go
+
5
−
1
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment