Skip to content

Commit

Permalink
Merge pull request stellar#171 from stellar/319-refactor-captive-core…
Browse files Browse the repository at this point in the history
…-to-use-db

Update config params to have UseDB true
  • Loading branch information
chowbao authored Dec 12, 2022
2 parents 14a1ee3 + 3d936a9 commit b23e284
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/input/changes.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ func PrepareCaptiveCore(execPath string, tomlPath string, start, end uint32, env
NetworkPassphrase: env.NetworkPassphrase,
HistoryArchiveURLs: env.ArchiveURLs,
Strict: true,
UseDB: true,
},
)
if err != nil {
Expand All @@ -44,6 +45,7 @@ func PrepareCaptiveCore(execPath string, tomlPath string, start, end uint32, env
Toml: toml,
NetworkPassphrase: env.NetworkPassphrase,
HistoryArchiveURLs: env.ArchiveURLs,
UseDB: true,
},
)
if err != nil {
Expand Down
2 changes: 2 additions & 0 deletions internal/input/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ func GetOperations(start, end uint32, limit int64, env utils.EnvironmentDetails)
NetworkPassphrase: env.NetworkPassphrase,
HistoryArchiveURLs: env.ArchiveURLs,
Strict: true,
UseDB: true,
},
)
if err != nil {
Expand All @@ -46,6 +47,7 @@ func GetOperations(start, end uint32, limit int64, env utils.EnvironmentDetails)
Toml: captiveCoreToml,
NetworkPassphrase: env.NetworkPassphrase,
HistoryArchiveURLs: env.ArchiveURLs,
UseDB: true,
},
)
if err != nil {
Expand Down
2 changes: 2 additions & 0 deletions internal/input/trades.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ func GetTrades(start, end uint32, limit int64, env utils.EnvironmentDetails) ([]
NetworkPassphrase: env.NetworkPassphrase,
HistoryArchiveURLs: env.ArchiveURLs,
Strict: true,
UseDB: true,
},
)
if err != nil {
Expand All @@ -42,6 +43,7 @@ func GetTrades(start, end uint32, limit int64, env utils.EnvironmentDetails) ([]
Toml: captiveCoreToml,
NetworkPassphrase: env.NetworkPassphrase,
HistoryArchiveURLs: env.ArchiveURLs,
UseDB: true,
},
)
if err != nil {
Expand Down
2 changes: 2 additions & 0 deletions internal/input/transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func GetTransactions(start, end uint32, limit int64, env utils.EnvironmentDetail
NetworkPassphrase: env.NetworkPassphrase,
HistoryArchiveURLs: env.ArchiveURLs,
Strict: true,
UseDB: true,
},
)

Expand All @@ -39,6 +40,7 @@ func GetTransactions(start, end uint32, limit int64, env utils.EnvironmentDetail
Toml: captiveCoreToml,
NetworkPassphrase: env.NetworkPassphrase,
HistoryArchiveURLs: env.ArchiveURLs,
UseDB: true,
},
)

Expand Down

0 comments on commit b23e284

Please sign in to comment.