diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-05-26 22:49:37 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-05-26 22:49:37 +0800 |
commit | 278183c7e727f875fb2eae8ceba29bfd4b01afc2 (patch) | |
tree | f68396abe3ad082f083d6f77305f788d66bfc2b7 /p2p/server.go | |
parent | eae092759760341912dcc52d8287642b62abf889 (diff) | |
download | go-tangerine-278183c7e727f875fb2eae8ceba29bfd4b01afc2.tar go-tangerine-278183c7e727f875fb2eae8ceba29bfd4b01afc2.tar.gz go-tangerine-278183c7e727f875fb2eae8ceba29bfd4b01afc2.tar.bz2 go-tangerine-278183c7e727f875fb2eae8ceba29bfd4b01afc2.tar.lz go-tangerine-278183c7e727f875fb2eae8ceba29bfd4b01afc2.tar.xz go-tangerine-278183c7e727f875fb2eae8ceba29bfd4b01afc2.tar.zst go-tangerine-278183c7e727f875fb2eae8ceba29bfd4b01afc2.zip |
eth, p2p: start the p2p server even if maxpeers == 0
Diffstat (limited to 'p2p/server.go')
-rw-r--r-- | p2p/server.go | 3 |
1 files changed, 0 insertions, 3 deletions
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 } |