Skip to content

Commit

Permalink
fix_: issue from the PR
Browse files Browse the repository at this point in the history
  • Loading branch information
friofry committed Jan 14, 2025
1 parent 7de2670 commit a8959b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 28 deletions.
10 changes: 5 additions & 5 deletions api/default_networks.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func mainnet(stageName string) params.Network {
*params.NewProxyProvider(chainID, proxyGrove, proxyUrl(stageName, grove, chainName, networkName), false),
// Direct providers
*params.NewDirectProvider(chainID, directInfura, "https://mainnet.infura.io/v3/", true),
*params.NewDirectProvider(chainID, directGrove, "https://eth-archival.rpc.grove.city/v1/", false),
*params.NewDirectProvider(chainID, directGrove, "https://eth.rpc.grove.city/v1/", false),
}

return params.Network{
Expand Down Expand Up @@ -76,7 +76,7 @@ func sepolia(stageName string) params.Network {
*params.NewProxyProvider(chainID, proxyGrove, proxyUrl(stageName, grove, chainName, networkName), true),
// Direct providers
*params.NewDirectProvider(chainID, directInfura, "https://sepolia.infura.io/v3/", true),
*params.NewDirectProvider(chainID, directGrove, "https://sepolia-archival.rpc.grove.city/v1/", false),
*params.NewDirectProvider(chainID, directGrove, "https://eth-sepolia-testnet.rpc.grove.city/v1/", false),
}

return params.Network{
Expand Down Expand Up @@ -109,7 +109,7 @@ func optimism(stageName string) params.Network {
*params.NewProxyProvider(chainID, proxyGrove, proxyUrl(stageName, grove, chainName, networkName), true),
// Direct providers
*params.NewDirectProvider(chainID, directInfura, "https://optimism-mainnet.infura.io/v3/", true),
*params.NewDirectProvider(chainID, directGrove, "https://optimism-archival.rpc.grove.city/v1/", false),
*params.NewDirectProvider(chainID, directGrove, "https://optimism.rpc.grove.city/v1/", false),
}

return params.Network{
Expand Down Expand Up @@ -142,7 +142,7 @@ func optimismSepolia(stageName string) params.Network {
*params.NewProxyProvider(chainID, proxyGrove, proxyUrl(stageName, grove, chainName, networkName), true),
// Direct providers
*params.NewDirectProvider(chainID, directInfura, "https://optimism-sepolia.infura.io/v3/", true),
*params.NewDirectProvider(chainID, directGrove, "https://optimism-sepolia-archival.rpc.grove.city/v1/", false),
*params.NewDirectProvider(chainID, directGrove, "https://optimism-sepolia-testnet.rpc.grove.city/v1/", false),
}

return params.Network{
Expand Down Expand Up @@ -208,7 +208,7 @@ func arbitrumSepolia(stageName string) params.Network {
*params.NewProxyProvider(chainID, proxyGrove, proxyUrl(stageName, grove, chainName, networkName), true),
// Direct providers
*params.NewDirectProvider(chainID, directInfura, "https://arbitrum-sepolia.infura.io/v3/", true),
*params.NewDirectProvider(chainID, directGrove, "https://arbitrum-sepolia-archival.rpc.grove.city/v1/", false),
*params.NewDirectProvider(chainID, directGrove, "https://arbitrum-sepolia-testnet.rpc.grove.city/v1/", false),
}

return params.Network{
Expand Down
23 changes: 0 additions & 23 deletions rpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,29 +311,6 @@ func (c *Client) getEthClients(network *params.Network) []ethclient.RPSLimitedEt

opts = append(opts, gethrpc.WithHeaders(headers))

// print provider details:
c.logger.Info("RPC provider",
zap.String("name", provider.Name),
zap.String("url", provider.URL),
zap.Bool("enabled", provider.Enabled),
zap.Bool("rps_limiter", provider.EnableRPSLimiter),
// token
zap.String("auth_login", provider.AuthLogin),
zap.String("auth_password", provider.AuthPassword),
zap.String("auth_token", provider.AuthToken),
)
// print the same with fmt.println
fmt.Println("RPC provider",
"name", provider.Name,
"url", provider.URL,
"enabled", provider.Enabled,
"rps_limiter", provider.EnableRPSLimiter,
// token
"auth_login", provider.AuthLogin,
"auth_password", provider.AuthPassword,
"auth_token", provider.AuthToken,
)

// Dial the RPC client
rpcClient, err := gethrpc.DialOptions(context.Background(), provider.URL, opts...)
if err != nil {
Expand Down

0 comments on commit a8959b8

Please sign in to comment.