Skip to content
Merged
Show file tree
Hide file tree
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
12 changes: 10 additions & 2 deletions config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ func TestDefaultForMode_ValidatorDisablesServices(t *testing.T) {
if cfg.API.REST.Enable {
t.Error("validator should have REST API disabled")
}
if cfg.API.GRPC.Enable {
t.Error("validator should have gRPC disabled")
if cfg.API.GRPCWeb.Enable {
t.Error("validator should have gRPC-web disabled (no current consumer; raw gRPC carries the price-feeder + cosmos-exporter traffic)")
}
if cfg.EVM.HTTPEnabled {
t.Error("validator should have EVM HTTP disabled")
Expand All @@ -48,6 +48,14 @@ func TestDefaultForMode_ValidatorDisablesServices(t *testing.T) {
}
}

func TestDefaultForMode_ValidatorEnablesGRPC(t *testing.T) {
cfg := DefaultForMode(ModeValidator)

if !cfg.API.GRPC.Enable {
t.Error("validator should have gRPC enabled (parity with sei-infra canonical EC2 deploy; price feeder + cosmos-exporter dial localhost:9090)")
}
}

func TestDefaultForMode_SeedHighConnections(t *testing.T) {
cfg := DefaultForMode(ModeSeed)

Expand Down
1 change: 0 additions & 1 deletion defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ func applyValidatorOverrides(cfg *SeiConfig) {
cfg.Network.P2P.AllowDuplicateIP = false

cfg.API.REST.Enable = false
cfg.API.GRPC.Enable = false
cfg.API.GRPCWeb.Enable = false
cfg.Storage.StateStore.Enable = false

Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "v0.0.14"
"version": "v0.0.15"
}
Loading