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
f5182c7b
Unverified
Commit
f5182c7b
authored
Oct 23, 2020
by
Martin Holst Swende
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
utils, params: add yolov2 bootnode
parent
6487c002
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
flags.go
cmd/utils/flags.go
+2
-2
bootnodes.go
params/bootnodes.go
+4
-4
No files found.
cmd/utils/flags.go
View file @
f5182c7b
...
...
@@ -804,7 +804,7 @@ func setBootstrapNodes(ctx *cli.Context, cfg *p2p.Config) {
case
ctx
.
GlobalBool
(
GoerliFlag
.
Name
)
:
urls
=
params
.
GoerliBootnodes
case
ctx
.
GlobalBool
(
YoloV2Flag
.
Name
)
:
urls
=
params
.
YoloV
1
Bootnodes
urls
=
params
.
YoloV
2
Bootnodes
case
cfg
.
BootstrapNodes
!=
nil
:
return
// already set, don't apply defaults.
}
...
...
@@ -840,7 +840,7 @@ func setBootstrapNodesV5(ctx *cli.Context, cfg *p2p.Config) {
case
ctx
.
GlobalBool
(
GoerliFlag
.
Name
)
:
urls
=
params
.
GoerliBootnodes
case
ctx
.
GlobalBool
(
YoloV2Flag
.
Name
)
:
urls
=
params
.
YoloV
1
Bootnodes
urls
=
params
.
YoloV
2
Bootnodes
case
cfg
.
BootstrapNodesV5
!=
nil
:
return
// already set, don't apply defaults.
}
...
...
params/bootnodes.go
View file @
f5182c7b
...
...
@@ -67,10 +67,10 @@ var GoerliBootnodes = []string{
"enode://a59e33ccd2b3e52d578f1fbd70c6f9babda2650f0760d6ff3b37742fdcdfdb3defba5d56d315b40c46b70198c7621e63ffa3f987389c7118634b0fefbbdfa7fd@51.15.119.157:40303"
,
}
// YoloV
1
Bootnodes are the enode URLs of the P2P bootstrap nodes running on the
// YOLOv
1
ephemeral test network.
var
YoloV
1
Bootnodes
=
[]
string
{
"enode://9e1096aa59862a6f164994cb5cb16f5124d6c992cdbf4535ff7dea43ea1512afe5448dca9df1b7ab0726129603f1a3336b631e4d7a1a44c94daddd03241587f9@
35.178.210.161
:30303"
,
// YoloV
2
Bootnodes are the enode URLs of the P2P bootstrap nodes running on the
// YOLOv
2
ephemeral test network.
var
YoloV
2
Bootnodes
=
[]
string
{
"enode://9e1096aa59862a6f164994cb5cb16f5124d6c992cdbf4535ff7dea43ea1512afe5448dca9df1b7ab0726129603f1a3336b631e4d7a1a44c94daddd03241587f9@
18.130.52.230
:30303"
,
}
const
dnsPrefix
=
"enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@"
...
...
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