swarm: enable p2p/discovery and disable dynamic dialling (#19189)

This commit is contained in:
Anton Evangelatov
2019-03-01 12:20:37 +01:00
committed by GitHub
parent 94eca08ad8
commit 4e9230ea7a
3 changed files with 37 additions and 3 deletions

View File

@ -287,8 +287,8 @@ func bzzd(ctx *cli.Context) error {
//setup the ethereum node
utils.SetNodeConfig(ctx, &cfg)
//always disable discovery from p2p package - swarm discovery is done with the `hive` protocol
cfg.P2P.NoDiscovery = true
//disable dynamic dialing from p2p/discovery
cfg.P2P.NoDial = true
stack, err := node.New(&cfg)
if err != nil {