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
dae3aee5
Unverified
Commit
dae3aee5
authored
Feb 18, 2020
by
Felix Lange
Committed by
GitHub
Feb 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
les: add bootstrap nodes as initial discoveries (#20688)
parent
05ccbb5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
serverpool.go
les/serverpool.go
+13
-0
No files found.
les/serverpool.go
View file @
dae3aee5
...
...
@@ -179,6 +179,19 @@ func (pool *serverPool) start(server *p2p.Server, topic discv5.Topic) {
pool
.
checkDial
()
pool
.
wg
.
Add
(
1
)
go
pool
.
eventLoop
()
// Inject the bootstrap nodes as initial dial candiates.
pool
.
wg
.
Add
(
1
)
go
func
()
{
defer
pool
.
wg
.
Done
()
for
_
,
n
:=
range
server
.
BootstrapNodes
{
select
{
case
pool
.
discNodes
<-
n
:
case
<-
pool
.
closeCh
:
return
}
}
}()
}
func
(
pool
*
serverPool
)
stop
()
{
...
...
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