Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
link33
plugin
Commits
87ad2da4
Commit
87ad2da4
authored
Feb 07, 2021
by
libangzhu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
66625de4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
node.go
plugin/p2p/gossip/node.go
+3
-3
No files found.
plugin/p2p/gossip/node.go
View file @
87ad2da4
...
@@ -122,9 +122,6 @@ func NewNode(mgr *p2p.Manager, mcfg *subConfig) (*Node, error) {
...
@@ -122,9 +122,6 @@ func NewNode(mgr *p2p.Manager, mcfg *subConfig) (*Node, error) {
node
.
cfgSeeds
.
Store
(
seed
,
"cfg"
)
node
.
cfgSeeds
.
Store
(
seed
,
"cfg"
)
}
}
node
.
nodeInfo
=
NewNodeInfo
(
cfg
.
GetModuleConfig
()
.
P2P
,
mcfg
)
node
.
nodeInfo
=
NewNodeInfo
(
cfg
.
GetModuleConfig
()
.
P2P
,
mcfg
)
if
mcfg
.
ServerStart
{
node
.
server
=
newListener
(
protocol
,
node
)
}
node
.
chainCfg
=
cfg
node
.
chainCfg
=
cfg
if
mcfg
.
EnableTls
{
//读取证书,初始化tls客户端
if
mcfg
.
EnableTls
{
//读取证书,初始化tls客户端
var
err
error
var
err
error
...
@@ -137,6 +134,9 @@ func NewNode(mgr *p2p.Manager, mcfg *subConfig) (*Node, error) {
...
@@ -137,6 +134,9 @@ func NewNode(mgr *p2p.Manager, mcfg *subConfig) (*Node, error) {
panic
(
err
)
panic
(
err
)
}
}
}
}
if
mcfg
.
ServerStart
{
node
.
server
=
newListener
(
protocol
,
node
)
}
return
node
,
nil
return
node
,
nil
}
}
...
...
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