Skip to content

Commit 6b49a70

Browse files
authored
Merge pull request #19 from sei-protocol/feat/validator-grpc-parity-with-sei-infra
feat: enable gRPC on validator mode (parity with sei-infra canonical)
2 parents f04c701 + a1a300a commit 6b49a70

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

config_test.go

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ func TestDefaultForMode_ValidatorDisablesServices(t *testing.T) {
3434
if cfg.API.REST.Enable {
3535
t.Error("validator should have REST API disabled")
3636
}
37-
if cfg.API.GRPC.Enable {
38-
t.Error("validator should have gRPC disabled")
37+
if cfg.API.GRPCWeb.Enable {
38+
t.Error("validator should have gRPC-web disabled (no current consumer; raw gRPC carries the price-feeder + cosmos-exporter traffic)")
3939
}
4040
if cfg.EVM.HTTPEnabled {
4141
t.Error("validator should have EVM HTTP disabled")
@@ -48,6 +48,14 @@ func TestDefaultForMode_ValidatorDisablesServices(t *testing.T) {
4848
}
4949
}
5050

51+
func TestDefaultForMode_ValidatorEnablesGRPC(t *testing.T) {
52+
cfg := DefaultForMode(ModeValidator)
53+
54+
if !cfg.API.GRPC.Enable {
55+
t.Error("validator should have gRPC enabled (parity with sei-infra canonical EC2 deploy; price feeder + cosmos-exporter dial localhost:9090)")
56+
}
57+
}
58+
5159
func TestDefaultForMode_SeedHighConnections(t *testing.T) {
5260
cfg := DefaultForMode(ModeSeed)
5361

defaults.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,6 @@ func applyValidatorOverrides(cfg *SeiConfig) {
259259
cfg.Network.P2P.AllowDuplicateIP = false
260260

261261
cfg.API.REST.Enable = false
262-
cfg.API.GRPC.Enable = false
263262
cfg.API.GRPCWeb.Enable = false
264263
cfg.Storage.StateStore.Enable = false
265264

version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "v0.0.14"
2+
"version": "v0.0.15"
33
}

0 commit comments

Comments
 (0)