Skip to content

Commit da52b77

Browse files
committed
fix: remove stale rpc/indexer references from error messages and comments
1 parent 31268be commit da52b77

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

enrichments.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func DefaultEnrichments() map[string][]FieldOption {
1212
WithDescription("Config schema version. Set by tooling, not operators."),
1313
},
1414
"mode": {
15-
WithDescription("Node operating mode: validator, full, seed, archive, rpc, indexer."),
15+
WithDescription("Node operating mode: validator, full, seed, archive."),
1616
},
1717

1818
// ---------------------------------------------------------------

intent.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
// The controller never calls DefaultForMode, ApplyOverrides, or Validate
1414
// directly — it just constructs an intent and sends it through.
1515
type ConfigIntent struct {
16-
// Mode is the node's operating role (validator, full, seed, archive, rpc, indexer).
16+
// Mode is the node's operating role (validator, full, seed, archive).
1717
Mode NodeMode `json:"mode"`
1818

1919
// Overrides is a flat map of dotted TOML key paths to string values.
@@ -178,7 +178,7 @@ func validateIntentMode(result *ConfigResult, intent ConfigIntent) {
178178
}
179179
if !intent.Mode.IsValid() {
180180
result.addError("mode", fmt.Sprintf(
181-
"unknown mode %q; valid modes: validator, full, seed, archive, rpc, indexer", intent.Mode))
181+
"unknown mode %q; valid modes: validator, full, seed, archive", intent.Mode))
182182
}
183183
}
184184

legacy.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ type legacyAppConfig struct {
207207
}
208208

209209
// legacySeiMeta stores sei-config metadata (mode, version) in app.toml so
210-
// that unified mode values (archive, rpc, indexer) survive legacy round-trips.
210+
// that unified mode values (archive) survive legacy round-trips.
211211
// Tendermint's config.toml only understands validator/full/seed.
212212
type legacySeiMeta struct {
213213
Mode string `toml:"mode"`
@@ -663,8 +663,8 @@ func (cfg *SeiConfig) toLegacyApp() legacyAppConfig {
663663
}
664664

665665
func fromLegacy(tm legacyTendermintConfig, app legacyAppConfig) *SeiConfig {
666-
// Prefer the sei metadata section (preserves archive/rpc/indexer) over the
667-
// Tendermint mode field (which only supports validator/full/seed).
666+
// Prefer the sei metadata section (preserves archive) over the Tendermint
667+
// mode field (which only supports validator/full/seed).
668668
mode := NodeMode(app.SeiMeta.Mode)
669669
if !mode.IsValid() {
670670
mode = NodeMode(tm.Mode)

validate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func validateMode(r *ValidationResult, cfg *SeiConfig) {
112112
}
113113
if !cfg.Mode.IsValid() {
114114
r.addError("mode", fmt.Sprintf(
115-
"unknown mode %q; valid modes: validator, full, seed, archive, rpc, indexer", cfg.Mode))
115+
"unknown mode %q; valid modes: validator, full, seed, archive", cfg.Mode))
116116
}
117117
}
118118

0 commit comments

Comments
 (0)