Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow p2p to run on all networks except Mainnet #2241

Merged
merged 1 commit into from
Oct 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@

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)

Check warning on line 174 in node/node.go

View check run for this annotation

Codecov / codecov/patch

node/node.go#L174

Added line #L174 was not covered by tests
}
log.Warnw("P2P features enabled. Please note P2P is in experimental stage")

Expand Down