config: complete removal of seed addresses in config (#8654)

This commit is contained in:
Callum Waters
2022-06-01 12:35:31 +02:00
committed by GitHub
parent d2ca0b868d
commit 7ffc872dd7
7 changed files with 12 additions and 25 deletions

View File

@@ -322,14 +322,6 @@ func MakeConfig(node *e2e.Node) (*config.Config, error) {
}
}
cfg.P2P.Seeds = "" //nolint: staticcheck
for _, seed := range node.Seeds {
if len(cfg.P2P.Seeds) > 0 { //nolint: staticcheck
cfg.P2P.Seeds += "," //nolint: staticcheck
}
cfg.P2P.Seeds += seed.AddressP2P(true) //nolint: staticcheck
}
cfg.P2P.PersistentPeers = ""
for _, peer := range node.PersistentPeers {
if len(cfg.P2P.PersistentPeers) > 0 {