From 8a208ae3cd1556f9342e2795c137ccc834d127b9 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 12 Sep 2017 22:13:48 +0200 Subject: [PATCH] server: disable bootstrapping for simnet mode by default --- server.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server.go b/server.go index 720bbfad..be542ac9 100644 --- a/server.go +++ b/server.go @@ -363,13 +363,15 @@ func (s *server) Start() error { // If network bootstrapping hasn't been disabled, then we'll configure // the set of active bootstrappers, and launch a dedicated goroutine to // maintain a set of persistent connections. - if !cfg.NoNetBootstrap { + if !cfg.NoNetBootstrap && !(cfg.Bitcoin.SimNet || cfg.Litecoin.SimNet) { networkBootStrappers, err := initNetworkBootstrappers(s) if err != nil { return err } s.wg.Add(1) go s.peerBootstrapper(3, networkBootStrappers) + } else { + srvrLog.Infof("Auto peer bootstrapping is disabled") } return nil