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
7d9c5e0f
Commit
7d9c5e0f
authored
Aug 22, 2016
by
Felix Lange
Committed by
GitHub
Aug 22, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2928 from obscuren/remove-dao-message
cmd/utils: removed DAO oppose / support message
parents
d8cec35b
5b44a819
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
17 deletions
+0
-17
flags.go
cmd/utils/flags.go
+0
-17
No files found.
cmd/utils/flags.go
View file @
7d9c5e0f
...
...
@@ -800,23 +800,6 @@ func MustMakeChainConfigFromDb(ctx *cli.Context, db ethdb.Database) *core.ChainC
case
ctx
.
GlobalBool
(
OpposeDAOFork
.
Name
)
:
config
.
DAOForkSupport
=
false
}
// Temporarilly display a proper message so the user knows which fork its on
if
!
ctx
.
GlobalBool
(
TestNetFlag
.
Name
)
&&
(
genesis
==
nil
||
genesis
.
Hash
()
==
common
.
HexToHash
(
"0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3"
))
{
choice
:=
"SUPPORT"
if
!
config
.
DAOForkSupport
{
choice
=
"OPPOSE"
}
current
:=
fmt
.
Sprintf
(
"Geth is currently configured to %s the DAO hard-fork!"
,
choice
)
howtoswap
:=
fmt
.
Sprintf
(
"You can change your choice prior to block #%v with --support-dao-fork or --oppose-dao-fork."
,
config
.
DAOForkBlock
)
howtosync
:=
fmt
.
Sprintf
(
"After the hard-fork block #%v passed, changing chains requires a resync from scratch!"
,
config
.
DAOForkBlock
)
separator
:=
strings
.
Repeat
(
"-"
,
len
(
howtoswap
))
glog
.
V
(
logger
.
Warn
)
.
Info
(
separator
)
glog
.
V
(
logger
.
Warn
)
.
Info
(
current
)
glog
.
V
(
logger
.
Warn
)
.
Info
(
howtoswap
)
glog
.
V
(
logger
.
Warn
)
.
Info
(
howtosync
)
glog
.
V
(
logger
.
Warn
)
.
Info
(
separator
)
}
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