Skip to content

Commit

Permalink
Merge pull request #5445 from kjzz/fix/bootstrap
Browse files Browse the repository at this point in the history
add warning when no bootstrap in config
  • Loading branch information
Stebalien authored Sep 11, 2018
2 parents eb45644 + 2280d66 commit a2ceb1f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ func bootstrapRound(ctx context.Context, host host.Host, cfg BootstrapConfig) er
// get bootstrap peers from config. retrieving them here makes
// sure we remain observant of changes to client configuration.
peers := cfg.BootstrapPeers()

if len(peers) == 0 {
log.Error("no bootstrap nodes configured: go-ipfs may have difficulty connecting to the network")
}
// determine how many bootstrap connections to open
connected := host.Network().Peers()
if len(connected) >= cfg.MinPeerThreshold {
Expand Down

0 comments on commit a2ceb1f

Please sign in to comment.