From f912f6835a01a5afcbd89af7c377b20a15ec1d79 Mon Sep 17 00:00:00 2001 From: Mohammed Sohail Date: Tue, 12 Nov 2024 10:36:29 +0300 Subject: [PATCH] fix: temp patch to load a single registry * We seem to have an issue loading a slice from env --- Makefile | 1 - config.toml | 2 +- internal/cache/cache.go | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6e23cdc..b602fd6 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,6 @@ clean-db: rm ${DB_FILE} build: - ${BUILD_CONF} go build -ldflags="-X main.build=${BUILD_COMMIT} -s -w" -o ${BOOTSTRAP_BIN} cmd/bootstrap/main.go ${BUILD_CONF} go build -ldflags="-X main.build=${BUILD_COMMIT} -s -w" -o ${BIN} cmd/service/*.go run-bootstrap: diff --git a/config.toml b/config.toml index c534e2a..82dc646 100644 --- a/config.toml +++ b/config.toml @@ -27,7 +27,7 @@ start_block = 0 [bootstrap] # This will bootstrap the cache on which addresses to track -ge_registries = ["0xE979a64D375F5D363d7cecF3c93B9aFD40Ba9f55"] +ge_registry = "0x0f8E97ef2d6A42CF62549D4924FCBdcE83A1C6A5" watchlist = [""] blacklist = [""] diff --git a/internal/cache/cache.go b/internal/cache/cache.go index bd5dbbe..2ec7fc4 100644 --- a/internal/cache/cache.go +++ b/internal/cache/cache.go @@ -27,6 +27,7 @@ type ( ) func New(o CacheOpts) (Cache, error) { + o.Logg.Info("initializing cache", "registries", o.Registries, "watchlist", o.Watchlist, "blacklist", o.Blacklist) var cache Cache switch o.CacheType {