mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 21:17:16 +00:00
Allow peers in dev mode (#2836)
This commit is contained in:
parent
f82074125c
commit
839e0c9d28
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user