Skip to content

Commit

Permalink
4856: Update default for --captive-core-use-db to true
Browse files Browse the repository at this point in the history
  • Loading branch information
urvisavla committed Jun 6, 2023
1 parent b060996 commit 25f3271
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions services/horizon/internal/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func Flags() (*Config, support.ConfigOptions) {
&support.ConfigOption{
Name: CaptiveCoreConfigUseDB,
OptType: types.Bool,
FlagDefault: false,
FlagDefault: true,
Required: false,
Usage: `when enabled, Horizon ingestion will instruct the captive
core invocation to use an external db url for ledger states rather than in memory(RAM).\n
Expand Down Expand Up @@ -736,9 +736,6 @@ func ApplyFlags(config *Config, flags support.ConfigOptions, options ApplyOption
if config.StellarCoreDatabaseURL != "" {
return fmt.Errorf("Invalid config: --%s passed but --ingest not set. ", StellarCoreDBURLFlagName)
}
if config.CaptiveCoreConfigUseDB {
return fmt.Errorf("Invalid config: --%s has been set, but --ingest not set. ", CaptiveCoreConfigUseDB)
}
}

// Configure log file
Expand Down

0 comments on commit 25f3271

Please sign in to comment.