Skip to content

Commit

Permalink
ci(e2e): disable websockets on non-archives (#2608)
Browse files Browse the repository at this point in the history
Disable websockets on non-archive nodes since this easily overloads RPC
nodes.

issue: none
  • Loading branch information
corverroos authored Dec 3, 2024
1 parent ba8ca78 commit ab6cafd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions e2e/app/geth/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ func MakeGethConfig(conf Config) FullConfig {
if conf.IsArchive {
cfg.Node.HTTPModules = append(cfg.Node.HTTPModules, "debug")
cfg.Node.WSModules = append(cfg.Node.WSModules, "debug")
} else {
cfg.Node.WSHost = "" // Disable websockets for non-archive nodes.
}

// Allow all incoming connections.
Expand Down
2 changes: 1 addition & 1 deletion e2e/app/geth/testdata/TestWriteConfigTOML_full.golden
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ HTTPModules = ["net", "web3", "eth"]
AuthAddr = "0.0.0.0"
AuthPort = 8551
AuthVirtualHosts = ["*"]
WSHost = "0.0.0.0"
WSHost = ""
WSPort = 8546
WSOrigins = ["*"]
WSModules = ["net", "web3", "eth"]
Expand Down
2 changes: 1 addition & 1 deletion e2e/app/geth/testdata/default_config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ HTTPModules = ["net", "web3", "eth"]
AuthAddr = "0.0.0.0"
AuthPort = 8551
AuthVirtualHosts = ["*"]
WSHost = "0.0.0.0"
WSHost = ""
WSPort = 8546
WSOrigins = ["*"]
WSModules = ["net", "web3", "eth"]
Expand Down

0 comments on commit ab6cafd

Please sign in to comment.