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
612f0140
Commit
612f0140
authored
May 25, 2015
by
Péter Szilágyi
Committed by
Felix Lange
May 26, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
p2p/discover: bond with seed nodes too (runs only if findnode failed)
parent
3630432d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
table.go
p2p/discover/table.go
+4
-7
No files found.
p2p/discover/table.go
View file @
612f0140
...
@@ -278,14 +278,11 @@ func (tab *Table) refresh() {
...
@@ -278,14 +278,11 @@ func (tab *Table) refresh() {
for
_
,
seed
:=
range
seeds
{
for
_
,
seed
:=
range
seeds
{
glog
.
V
(
logger
.
Debug
)
.
Infoln
(
"Seeding network with"
,
seed
)
glog
.
V
(
logger
.
Debug
)
.
Infoln
(
"Seeding network with"
,
seed
)
}
}
peers
:=
append
(
tab
.
nursery
,
seeds
...
)
nodes
:=
append
(
tab
.
nursery
,
seeds
...
)
// Bootstrap the table with a self lookup
if
len
(
peers
)
>
0
{
tab
.
mutex
.
Lock
()
tab
.
add
(
peers
)
tab
.
mutex
.
Unlock
()
// Bond with all the seed nodes (will pingpong only if failed recently)
bonded
:=
tab
.
bondall
(
nodes
)
if
len
(
bonded
)
>
0
{
tab
.
Lookup
(
tab
.
self
.
ID
)
tab
.
Lookup
(
tab
.
self
.
ID
)
}
}
// TODO: the Kademlia paper says that we're supposed to perform
// TODO: the Kademlia paper says that we're supposed to perform
...
...
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