From 278183c7e727f875fb2eae8ceba29bfd4b01afc2 Mon Sep 17 00:00:00 2001 From: Péter Szilágyi Date: Tue, 26 May 2015 17:49:37 +0300 Subject: eth, p2p: start the p2p server even if maxpeers == 0 --- p2p/server.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'p2p') diff --git a/p2p/server.go b/p2p/server.go index af08380e1..9c6e8f4db 100644 --- a/p2p/server.go +++ b/p2p/server.go @@ -275,9 +275,6 @@ func (srv *Server) Start() (err error) { if srv.PrivateKey == nil { return fmt.Errorf("Server.PrivateKey must be set to a non-nil key") } - if srv.MaxPeers <= 0 { - return fmt.Errorf("Server.MaxPeers must be > 0") - } if srv.newTransport == nil { srv.newTransport = newRLPX } -- cgit