Skip to content

Commit ab14918

Browse files
authored
Merge pull request #411 from shutter-network/fix/sole-bootstrapper
fix: allow bootstrap node to have no bootstrap peers
2 parents f7f3a48 + fbf96f8 commit ab14918

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

play/bb.edn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
(Long/valueOf (or (System/getenv s) default)))
3737

3838
(def num-keypers (long-from-env "PLAY_NUM_KEYPERS" "3"))
39-
(def num-bootstrappers 1)
39+
(def num-bootstrappers (long-from-env "PLAY_NUM_BOOTSTRAPPERS" "1"))
4040

4141
(def windows? (babashka.core/windows?))
4242
(def no-color? windows?)

rolling-shutter/p2p/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func New(config *Config) (*P2PHandler, error) {
8484
cfg.BootstrapPeers = append(cfg.BootstrapPeers, *ai)
8585
}
8686
}
87-
if len(cfg.BootstrapPeers) < 1 {
87+
if len(cfg.BootstrapPeers) < 1 && !cfg.IsBootstrapNode {
8888
return nil, errors.New("no bootstrap peers configured")
8989
}
9090

0 commit comments

Comments
 (0)