aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-05-26 22:49:37 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-05-26 22:49:37 +0800
commit278183c7e727f875fb2eae8ceba29bfd4b01afc2 (patch)
treef68396abe3ad082f083d6f77305f788d66bfc2b7 /eth
parenteae092759760341912dcc52d8287642b62abf889 (diff)
downloadgo-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 'eth')
-rw-r--r--eth/backend.go10
1 files changed, 3 insertions, 7 deletions
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()