Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mybee
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
vicotor
mybee
Commits
b6800373
Commit
b6800373
authored
Sep 15, 2021
by
luxq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add log for kad connect.
parent
91e8417d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
start.go
cmd/bee/cmd/start.go
+2
-0
kademlia.go
pkg/topology/kademlia/kademlia.go
+1
-0
No files found.
cmd/bee/cmd/start.go
View file @
b6800373
...
...
@@ -122,6 +122,7 @@ inability to use, or your interaction with other nodes or the software.`)
bootNode
:=
c
.
config
.
GetBool
(
optionNameBootnodeMode
)
fullNode
:=
c
.
config
.
GetBool
(
optionNameFullNode
)
logger
.
Info
(
"bootnode mode = "
,
bootNode
)
if
bootNode
&&
!
fullNode
{
return
errors
.
New
(
"boot node must be started as a full node"
)
...
...
@@ -139,6 +140,7 @@ inability to use, or your interaction with other nodes or the software.`)
}
bootnodes
:=
c
.
config
.
GetStringSlice
(
optionNameBootnodes
)
logger
.
Info
(
"get bootnodes "
,
bootnodes
)
blockTime
:=
c
.
config
.
GetUint64
(
optionNameBlockTime
)
networkConfig
:=
getConfigByNetworkID
(
networkID
,
blockTime
)
...
...
pkg/topology/kademlia/kademlia.go
View file @
b6800373
...
...
@@ -628,6 +628,7 @@ func (k *Kad) Start(_ context.Context) error {
func
(
k
*
Kad
)
connectBootNodes
(
ctx
context
.
Context
)
{
var
attempts
,
connected
int
totalAttempts
:=
maxBootNodeAttempts
*
len
(
k
.
bootnodes
)
k
.
logger
.
Debugf
(
"connectBootNodes"
)
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
15
*
time
.
Second
)
defer
cancel
()
...
...
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