Skip to content

Commit

Permalink
fix: use new default testnet eth rpc url (#638)
Browse files Browse the repository at this point in the history
The previous default would report that tx did not exist when looked up
by hash. This new url works without issue. Also increase the cache size
to reduce the chances of being rate limited.

Now standing up a local node can successfully synchronize with the
bootstrap nodes without being rate limited.
  • Loading branch information
nathanielc authored Jan 7, 2025
1 parent b146587 commit 0a2749c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions one/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ impl Network {
anyhow::bail!("no Ethereum RPC URLs specified for Mainnet")
}
Network::TestnetClay => {
info!("no Ethereum RPC URLs specified for Clay Testnet, defaulting to https://gnosis-rpc.publicnode.com");
Ok(vec!["https://gnosis-rpc.publicnode.com".to_string()])
info!("no Ethereum RPC URLs specified for Clay Testnet, defaulting to https://rpc.ankr.com/gnosis");
Ok(vec!["https://rpc.ankr.com/gnosis".to_string()])
}
Network::DevUnstable => {
info!("no Ethereum RPC URLs specified for dev-unstable network, defaulting to https://ethereum-sepolia-rpc.publicnode.com");
Expand Down
2 changes: 1 addition & 1 deletion validation/src/blockchain/eth_rpc/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static BLOCK_THRESHHOLDS: Lazy<HashMap<caip2::ChainId, u64>> = Lazy::new(|| {
])
});

const TRANSACTION_CACHE_SIZE: usize = 50;
const TRANSACTION_CACHE_SIZE: usize = 1_000;
const BLOCK_CACHE_SIZE: usize = 50;

type Result<T> = std::result::Result<T, Error>;
Expand Down

0 comments on commit 0a2749c

Please sign in to comment.