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
1a1a1ee4
Commit
1a1a1ee4
authored
Sep 16, 2015
by
Kobi Gurkan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/geth: extradata is correcly initialized with console
parent
985b5f29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
main.go
cmd/geth/main.go
+3
-1
No files found.
cmd/geth/main.go
View file @
1a1a1ee4
...
@@ -360,7 +360,7 @@ func main() {
...
@@ -360,7 +360,7 @@ func main() {
}
}
}
}
//
M
akeExtra resolves extradata for the miner from a flag or returns a default.
//
m
akeExtra resolves extradata for the miner from a flag or returns a default.
func
makeExtra
(
ctx
*
cli
.
Context
)
[]
byte
{
func
makeExtra
(
ctx
*
cli
.
Context
)
[]
byte
{
if
ctx
.
GlobalIsSet
(
ExtraDataFlag
.
Name
)
{
if
ctx
.
GlobalIsSet
(
ExtraDataFlag
.
Name
)
{
return
[]
byte
(
ctx
.
GlobalString
(
ExtraDataFlag
.
Name
))
return
[]
byte
(
ctx
.
GlobalString
(
ExtraDataFlag
.
Name
))
...
@@ -444,6 +444,8 @@ func console(ctx *cli.Context) {
...
@@ -444,6 +444,8 @@ func console(ctx *cli.Context) {
utils
.
CheckLegalese
(
ctx
.
GlobalString
(
utils
.
DataDirFlag
.
Name
))
utils
.
CheckLegalese
(
ctx
.
GlobalString
(
utils
.
DataDirFlag
.
Name
))
cfg
:=
utils
.
MakeEthConfig
(
ClientIdentifier
,
nodeNameVersion
,
ctx
)
cfg
:=
utils
.
MakeEthConfig
(
ClientIdentifier
,
nodeNameVersion
,
ctx
)
cfg
.
ExtraData
=
makeExtra
(
ctx
)
ethereum
,
err
:=
eth
.
New
(
cfg
)
ethereum
,
err
:=
eth
.
New
(
cfg
)
if
err
!=
nil
{
if
err
!=
nil
{
utils
.
Fatalf
(
"%v"
,
err
)
utils
.
Fatalf
(
"%v"
,
err
)
...
...
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