Skip to content

Commit

Permalink
Rename SuaveDnsRegistry to DnsRegistry
Browse files Browse the repository at this point in the history
  • Loading branch information
jinmel committed Feb 22, 2024
1 parent 375f030 commit d5b8316
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion eth/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down
2 changes: 1 addition & 1 deletion suave/core/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
2 changes: 1 addition & 1 deletion suave/e2e/workflow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit d5b8316

Please sign in to comment.