fix: need to init and setup P2P service
This commit is contained in:
parent
311b03737c
commit
4b406bcf57
10
node/node.go
10
node/node.go
|
@ -77,6 +77,16 @@ func (n *NodeImpl) Start() error {
|
|||
return err
|
||||
}
|
||||
|
||||
err = n.Services().P2P().Init()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
err = n.Services().P2P().Start()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
n.started = true
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue