From 839e0c9d28ba5c45da95799c2be91fafaf28300b Mon Sep 17 00:00:00 2001
From: Andrea Lanfranchi <andrea.lanfranchi@gmail.com>
Date: Mon, 18 Oct 2021 20:36:01 +0200
Subject: [PATCH] Allow peers in dev mode (#2836)

---
 cmd/utils/flags.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go
index 3400b60cd5..d71f2806a9 100644
--- a/cmd/utils/flags.go
+++ b/cmd/utils/flags.go
@@ -871,7 +871,7 @@ func SetP2PConfig(ctx *cli.Context, cfg *p2p.Config, nodeName, dataDir string) {
 
 	if ctx.GlobalString(ChainFlag.Name) == params.DevChainName {
 		// --dev mode can't use p2p networking.
-		cfg.MaxPeers = 0
+		// cfg.MaxPeers = 0 // It can have peers otherwise local sync is not possible
 		cfg.ListenAddr = ":0"
 		cfg.NoDiscovery = true
 		cfg.DiscoveryV5 = false
-- 
GitLab