Skip to content

Commit

Permalink
Allow p2p to run on all networks except Mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
IronGauntlets authored and derrix060 committed Oct 25, 2024
1 parent 8ca9307 commit 3c9275f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ func New(cfg *Config, version string) (*Node, error) { //nolint:gocyclo,funlen

var p2pService *p2p.Service
if cfg.P2P {
if cfg.Network != utils.Sepolia {
return nil, fmt.Errorf("P2P can only be used for %v network. Provided network: %v", utils.Sepolia, cfg.Network)
if cfg.Network == utils.Mainnet {
return nil, fmt.Errorf("P2P cannot be used on %v network", utils.Mainnet)
}
log.Warnw("P2P features enabled. Please note P2P is in experimental stage")

Expand Down

0 comments on commit 3c9275f

Please sign in to comment.