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
0a454554
Commit
0a454554
authored
Jan 24, 2019
by
Anton Evangelatov
Committed by
Felix Lange
Jan 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/utils: allow empty bootnodes flag override (#18509)
parent
ad13d2d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
flags.go
cmd/utils/flags.go
+6
-4
No files found.
cmd/utils/flags.go
View file @
0a454554
...
...
@@ -749,11 +749,13 @@ func setBootstrapNodes(ctx *cli.Context, cfg *p2p.Config) {
cfg
.
BootstrapNodes
=
make
([]
*
enode
.
Node
,
0
,
len
(
urls
))
for
_
,
url
:=
range
urls
{
node
,
err
:=
enode
.
ParseV4
(
url
)
if
err
!=
nil
{
log
.
Crit
(
"Bootstrap URL invalid"
,
"enode"
,
url
,
"err"
,
err
)
if
url
!=
""
{
node
,
err
:=
enode
.
ParseV4
(
url
)
if
err
!=
nil
{
log
.
Crit
(
"Bootstrap URL invalid"
,
"enode"
,
url
,
"err"
,
err
)
}
cfg
.
BootstrapNodes
=
append
(
cfg
.
BootstrapNodes
,
node
)
}
cfg
.
BootstrapNodes
=
append
(
cfg
.
BootstrapNodes
,
node
)
}
}
...
...
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