Only use DiscV5 for full nodes

This commit is contained in:
Vitaly Vlasov 2024-02-12 14:30:57 +02:00 committed by frank
parent 34f1d26371
commit 637ce1d5eb
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ func New(nodeKey string, fleet string, cfg *Config, logger *zap.Logger, appDB *s
node.WithMaxMsgSize(1024 * 1024),
}
if cfg.EnableDiscV5 {
if cfg.EnableDiscV5 && !waku.settings.LightClient {
bootnodes, err := waku.getDiscV5BootstrapNodes(waku.ctx, cfg.DiscV5BootstrapNodes)
if err != nil {
logger.Error("failed to get bootstrap nodes", zap.Error(err))