server: disable network bootstrapping for regtest
This commit is contained in:
parent
c0b8c29382
commit
87840f215b
2
.gitignore
vendored
2
.gitignore
vendored
@ -45,3 +45,5 @@ profile.cov
|
|||||||
profile.tmp
|
profile.tmp
|
||||||
|
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
|
main*
|
||||||
|
@ -419,7 +419,8 @@ func (s *server) Start() error {
|
|||||||
// If network bootstrapping hasn't been disabled, then we'll configure
|
// If network bootstrapping hasn't been disabled, then we'll configure
|
||||||
// the set of active bootstrappers, and launch a dedicated goroutine to
|
// the set of active bootstrappers, and launch a dedicated goroutine to
|
||||||
// maintain a set of persistent connections.
|
// maintain a set of persistent connections.
|
||||||
if !cfg.NoNetBootstrap && !(cfg.Bitcoin.SimNet || cfg.Litecoin.SimNet) {
|
if !cfg.NoNetBootstrap && !(cfg.Bitcoin.SimNet || cfg.Litecoin.SimNet) &&
|
||||||
|
!(cfg.Bitcoin.RegTest || cfg.Litecoin.RegTest) {
|
||||||
networkBootStrappers, err := initNetworkBootstrappers(s)
|
networkBootStrappers, err := initNetworkBootstrappers(s)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user