server: disable bootstrapping for simnet mode by default

This commit is contained in:
Olaoluwa Osuntokun 2017-09-12 22:13:48 +02:00
parent bf071c1985
commit 8a208ae3cd
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21

@ -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