提交 c2bb1ad7 作者: Kejie Zhang

add warning when no bootstrap in config

License: MIT
Signed-off-by: 's avatarKejie Zhang <601172892@qq.com>
上级 3a3e8d1b
......@@ -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.Warning("no bootstrap in the configuration file")
}
// determine how many bootstrap connections to open
connected := host.Network().Peers()
if len(connected) >= cfg.MinPeerThreshold {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论