diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index f98747ac9..1ab08383d 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -1741,7 +1741,7 @@ func SetSuaveConfig(ctx *cli.Context, stack *node.Node, cfg *suave.Config) { domain := parts[1] dnsRegistry[name] = domain } - cfg.SuaveDnsRegistry = dnsRegistry + cfg.DnsRegistry = dnsRegistry } if ctx.IsSet(SuaveConfidentialTransportRedisEndpointFlag.Name) { diff --git a/eth/backend.go b/eth/backend.go index 7a46bbff1..85a503592 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -290,7 +290,7 @@ func New(stack *node.Node, config *ethconfig.Config) (*Ethereum, error) { confidentialStoreEngine := cstore.NewEngine(confidentialStoreBackend, confidentialStoreTransport, suaveDaSigner, types.LatestSigner(chainConfig)) eth.APIBackend = &EthAPIBackend{stack.Config().ExtRPCEnabled(), stack.Config().AllowUnprotectedTxs, eth, nil, - suaveEthBundleSigningKey, suaveEthBlockSigningKey, confidentialStoreEngine, suaveEthBackend, config.Suave.ExternalWhitelist, config.Suave.SuaveDnsRegistry} + suaveEthBundleSigningKey, suaveEthBlockSigningKey, confidentialStoreEngine, suaveEthBackend, config.Suave.ExternalWhitelist, config.Suave.DnsRegistry} if eth.APIBackend.allowUnprotectedTxs { log.Info("Unprotected transactions allowed") } diff --git a/suave/core/config.go b/suave/core/config.go index 542c9cdb2..e68f3a4a3 100644 --- a/suave/core/config.go +++ b/suave/core/config.go @@ -2,13 +2,13 @@ package suave type Config struct { SuaveEthRemoteBackendEndpoint string // deprecated - SuaveDnsRegistry map[string]string RedisStorePubsubUri string RedisStoreUri string PebbleDbPath string EthBundleSigningKeyHex string EthBlockSigningKeyHex string ExternalWhitelist []string + DnsRegistry map[string]string } var DefaultConfig = Config{} diff --git a/suave/e2e/workflow_test.go b/suave/e2e/workflow_test.go index 4294ace89..40fc5401a 100644 --- a/suave/e2e/workflow_test.go +++ b/suave/e2e/workflow_test.go @@ -1441,7 +1441,7 @@ func WithWhitelist(whitelist []string) frameworkOpt { func WithDnsRegistry(registry map[string]string) frameworkOpt { return func(c *frameworkConfig) { - c.suaveConfig.SuaveDnsRegistry = registry + c.suaveConfig.DnsRegistry = registry } }