From 4e9230ea7a846013777a9d7227f2ac0dec8678ec Mon Sep 17 00:00:00 2001
From: Anton Evangelatov <anton.evangelatov@gmail.com>
Date: Fri, 1 Mar 2019 12:20:37 +0100
Subject: swarm: enable p2p/discovery and disable dynamic dialling (#19189)

---
 cmd/swarm/main.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'cmd')

diff --git a/cmd/swarm/main.go b/cmd/swarm/main.go
index 4d63255d7..06d5b0bb2 100644
--- a/cmd/swarm/main.go
+++ b/cmd/swarm/main.go
@@ -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 {
-- 
cgit v1.2.3