diff --git a/net/node.go b/net/node.go index a2d27bde6b..e1557374cb 100644 --- a/net/node.go +++ b/net/node.go @@ -192,13 +192,15 @@ func NewNode( } }() - return &Node{ + node = &Node{ Peer: peer, DB: db, ctx: ctx, cancel: cancel, dhtClose: ddht.Close, - }, nil + } + + return } // Bootstrap connects to the given peers.