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
9747df29
Unverified
Commit
9747df29
authored
Feb 06, 2019
by
Péter Szilágyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/puppeth: handle pre-set Petersburg number, save changed fork rules
parent
75c9570c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
wizard_genesis.go
cmd/puppeth/wizard_genesis.go
+7
-3
No files found.
cmd/puppeth/wizard_genesis.go
View file @
9747df29
...
...
@@ -222,14 +222,18 @@ func (w *wizard) manageGenesis() {
fmt
.
Println
()
fmt
.
Printf
(
"Which block should Constantinople come into effect? (default = %v)
\n
"
,
w
.
conf
.
Genesis
.
Config
.
ConstantinopleBlock
)
w
.
conf
.
Genesis
.
Config
.
ConstantinopleBlock
=
w
.
readDefaultBigInt
(
w
.
conf
.
Genesis
.
Config
.
ConstantinopleBlock
)
if
w
.
conf
.
Genesis
.
Config
.
PetersburgBlock
==
nil
{
w
.
conf
.
Genesis
.
Config
.
PetersburgBlock
=
w
.
conf
.
Genesis
.
Config
.
ConstantinopleBlock
}
fmt
.
Println
()
fmt
.
Printf
(
"Which block should Constantinople-Fix (remove EIP-1283) come into effect? (default = %v)
\n
"
,
w
.
conf
.
Genesis
.
Config
.
Constantinople
Block
)
w
.
conf
.
Genesis
.
Config
.
PetersburgBlock
=
w
.
readDefaultBigInt
(
w
.
conf
.
Genesis
.
Config
.
Constantinople
Block
)
fmt
.
Printf
(
"Which block should Constantinople-Fix (remove EIP-1283) come into effect? (default = %v)
\n
"
,
w
.
conf
.
Genesis
.
Config
.
Petersburg
Block
)
w
.
conf
.
Genesis
.
Config
.
PetersburgBlock
=
w
.
readDefaultBigInt
(
w
.
conf
.
Genesis
.
Config
.
Petersburg
Block
)
out
,
_
:=
json
.
MarshalIndent
(
w
.
conf
.
Genesis
.
Config
,
""
,
" "
)
fmt
.
Printf
(
"Chain configuration updated:
\n\n
%s
\n
"
,
out
)
w
.
conf
.
flush
()
case
"2"
:
// Save whatever genesis configuration we currently have
fmt
.
Println
()
...
...
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