From fbb2314688501e20b494d6c105dee9b7c335e978 Mon Sep 17 00:00:00 2001 From: sydneynotthecity Date: Tue, 17 Oct 2023 15:56:59 -0500 Subject: [PATCH] Revert usedb flag which is slow --- go.sum | 2 -- internal/input/changes.go | 4 ++-- internal/utils/main.go | 4 ++-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/go.sum b/go.sum index b6fb01eb..4f5c83c3 100644 --- a/go.sum +++ b/go.sum @@ -344,8 +344,6 @@ github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= github.com/spf13/viper v1.7.1 h1:pM5oEahlgWv/WnHXpgbKz7iLIxRf65tye2Ci+XFK5sk= github.com/spf13/viper v1.7.1/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg= -github.com/stellar/go v0.0.0-20230914224101-86d1e0dbae69 h1:beBZfX5/8CmlXC5jKjl/Ikxa4sulfKp9MybAD5Vc8jU= -github.com/stellar/go v0.0.0-20230914224101-86d1e0dbae69/go.mod h1:5/qoLl0pexA5OPi0BZvDsOc3532CJlHuRg1dnBxbsGg= github.com/stellar/go v0.0.0-20230918135710-d41faf8cd619 h1:fjTSRhA5XWxuydtjtNwgW+kgs9qyD2UScNmuH+XMn20= github.com/stellar/go v0.0.0-20230918135710-d41faf8cd619/go.mod h1:5/qoLl0pexA5OPi0BZvDsOc3532CJlHuRg1dnBxbsGg= github.com/stellar/go-xdr v0.0.0-20211103144802-8017fc4bdfee h1:fbVs0xmXpBvVS4GBeiRmAE3Le70ofAqFMch1GTiq/e8= diff --git a/internal/input/changes.go b/internal/input/changes.go index 99472e62..37a54d09 100644 --- a/internal/input/changes.go +++ b/internal/input/changes.go @@ -32,7 +32,7 @@ func PrepareCaptiveCore(execPath string, tomlPath string, start, end uint32, env NetworkPassphrase: env.NetworkPassphrase, HistoryArchiveURLs: env.ArchiveURLs, Strict: true, - UseDB: true, + UseDB: false, }, ) if err != nil { @@ -45,7 +45,7 @@ func PrepareCaptiveCore(execPath string, tomlPath string, start, end uint32, env Toml: toml, NetworkPassphrase: env.NetworkPassphrase, HistoryArchiveURLs: env.ArchiveURLs, - UseDB: true, + UseDB: false, }, ) if err != nil { diff --git a/internal/utils/main.go b/internal/utils/main.go index 5ada7808..5ce5fe54 100644 --- a/internal/utils/main.go +++ b/internal/utils/main.go @@ -646,7 +646,7 @@ func (e EnvironmentDetails) CreateCaptiveCoreBackend() (*ledgerbackend.CaptiveSt NetworkPassphrase: e.NetworkPassphrase, HistoryArchiveURLs: e.ArchiveURLs, Strict: true, - UseDB: true, + UseDB: false, }, ) if err != nil { @@ -658,7 +658,7 @@ func (e EnvironmentDetails) CreateCaptiveCoreBackend() (*ledgerbackend.CaptiveSt Toml: captiveCoreToml, NetworkPassphrase: e.NetworkPassphrase, HistoryArchiveURLs: e.ArchiveURLs, - UseDB: true, + UseDB: false, }, ) return backend, err