From 4a20e6371d075a5fb36c8b310f9579d7687e47ab Mon Sep 17 00:00:00 2001 From: Simon Chow Date: Thu, 18 Jan 2024 18:09:20 -0500 Subject: [PATCH] Add useragent changes --- docker/stellar-core.cfg | 6 +++--- internal/input/changes.go | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docker/stellar-core.cfg b/docker/stellar-core.cfg index 31a037cb..449e0806 100644 --- a/docker/stellar-core.cfg +++ b/docker/stellar-core.cfg @@ -40,10 +40,10 @@ VALIDATORS=[ # Stellar.org history store [HISTORY.sdf1] -get="curl -sf http://history.stellar.org/prd/core-live/core_live_001/{0} -o {1}" +get="curl -sf -A stellar-etl/1.0.0 http://history.stellar.org/prd/core-live/core_live_001/{0} -o {1}" [HISTORY.sdf2] -get="curl -sf http://history.stellar.org/prd/core-live/core_live_002/{0} -o {1}" +get="curl -sf -A stellar-etl/1.0.0 http://history.stellar.org/prd/core-live/core_live_002/{0} -o {1}" [HISTORY.sdf3] -get="curl -sf http://history.stellar.org/prd/core-live/core_live_003/{0} -o {1}" +get="curl -sf -A stellar-etl/1.0.0 http://history.stellar.org/prd/core-live/core_live_003/{0} -o {1}" diff --git a/internal/input/changes.go b/internal/input/changes.go index 36853654..7dc7dfaa 100644 --- a/internal/input/changes.go +++ b/internal/input/changes.go @@ -51,6 +51,7 @@ func PrepareCaptiveCore(execPath string, tomlPath string, start, end uint32, env NetworkPassphrase: env.NetworkPassphrase, HistoryArchiveURLs: env.ArchiveURLs, UseDB: false, + UserAgent: "stellar-etl/1.0.0", }, ) if err != nil {