Commit e965517a authored by protolambda's avatar protolambda Committed by GitHub

op-node: config that disables itself should not init further (#3395)

Co-authored-by: default avatarmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
parent cee753f4
......@@ -198,7 +198,7 @@ func (n *OpNode) initMetricsServer(ctx context.Context, cfg *Config) error {
func (n *OpNode) initP2P(ctx context.Context, cfg *Config) error {
if cfg.P2P != nil {
p2pNode, err := p2p.NewNodeP2P(n.resourcesCtx, &cfg.Rollup, n.log, cfg.P2P, n)
if err != nil {
if err != nil || p2pNode == nil {
return err
}
n.p2pNode = p2pNode
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment