From 16ad49cf982422ce004ef66a2968e41ffe0fce68 Mon Sep 17 00:00:00 2001 From: Ethen Pociask Date: Tue, 3 Dec 2024 21:28:59 +0700 Subject: [PATCH] fix: Disable svc manager address & eth rpc as mandatory - add eigenda client override when memstore enabled --- server/config.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/config.go b/server/config.go index 75a9866..77274b7 100644 --- a/server/config.go +++ b/server/config.go @@ -45,6 +45,13 @@ func (cfg *Config) Check() error { } } + // provide dummy values to eigenda client config. Since the client won't be called in this + // mode it doesn't matter. + if cfg.MemstoreEnabled { + cfg.EdaClientConfig.SvcManagerAddr = "0x0000000000000000000000000000000000000000" + cfg.EdaClientConfig.EthRpcUrl = "http://0.0.0.0:666" + } + // cert verification is enabled // TODO: move this verification logic to verify/cli.go if cfg.VerifierConfig.VerifyCerts {