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 --- eth/backend.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'eth') diff --git a/eth/backend.go b/eth/backend.go index aeaac788a..73d37c536 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -449,14 +449,10 @@ func (s *Ethereum) Start() error { ClientString: s.net.Name, ProtocolVersion: ProtocolVersion, }) - - if s.net.MaxPeers > 0 { - err := s.net.Start() - if err != nil { - return err - } + err := s.net.Start() + if err != nil { + return err } - // periodically flush databases go s.syncDatabases() -- cgit