Skip to content

Commit

Permalink
servies/horizon: clean up duplicate captive-core default config files
Browse files Browse the repository at this point in the history
  • Loading branch information
urvisavla committed May 9, 2024
1 parent 18dee5c commit 404be9c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 232 deletions.
195 changes: 0 additions & 195 deletions services/horizon/internal/configs/captive-core-pubnet.cfg

This file was deleted.

28 changes: 0 additions & 28 deletions services/horizon/internal/configs/captive-core-testnet.cfg

This file was deleted.

2 changes: 1 addition & 1 deletion services/horizon/internal/docs/GUIDE_FOR_DEVELOPERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Add a debug configuration in your IDE to attach a debugger to the local Horizon
"program": "${workspaceRoot}/services/horizon/main.go",
"env": {
"DATABASE_URL": "postgres://postgres@localhost:5432/horizon?sslmode=disable",
"CAPTIVE_CORE_CONFIG_APPEND_PATH": "./services/horizon/internal/configs/captive-core-testnet.cfg",
"CAPTIVE_CORE_CONFIG_APPEND_PATH": "./ingest/ledgerbackend/configs/captive-core-testnet.cfg",
"HISTORY_ARCHIVE_URLS": "https://history.stellar.org/prd/core-testnet/core_testnet_001,https://history.stellar.org/prd/core-testnet/core_testnet_002",
"NETWORK_PASSPHRASE": "Test SDF Network ; September 2015",
"PER_HOUR_RATE_LIMIT": "0"
Expand Down
10 changes: 2 additions & 8 deletions services/horizon/internal/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -835,20 +835,14 @@ type networkConfig struct {
}

var (
//go:embed configs/captive-core-pubnet.cfg
PubnetDefaultConfig []byte

//go:embed configs/captive-core-testnet.cfg
TestnetDefaultConfig []byte

PubnetConf = networkConfig{
defaultConfig: PubnetDefaultConfig,
defaultConfig: ledgerbackend.PubnetDefaultConfig,
HistoryArchiveURLs: network.PublicNetworkhistoryArchiveURLs,
NetworkPassphrase: network.PublicNetworkPassphrase,
}

TestnetConf = networkConfig{
defaultConfig: TestnetDefaultConfig,
defaultConfig: ledgerbackend.TestnetDefaultConfig,
HistoryArchiveURLs: network.TestNetworkhistoryArchiveURLs,
NetworkPassphrase: network.TestNetworkPassphrase,
}
Expand Down

0 comments on commit 404be9c

Please sign in to comment.