Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(core): Batched event processing support for Reth #2623

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions core/node/eth_watch/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ pub trait EthClient: 'static + fmt::Debug + Send + Sync {
pub const RETRY_LIMIT: usize = 5;
const TOO_MANY_RESULTS_INFURA: &str = "query returned more than";
const TOO_MANY_RESULTS_ALCHEMY: &str = "response size exceeded";
const TOO_MANY_RESULTS_RETH: &str = "query exceeds max block range";

/// Implementation of [`EthClient`] based on HTTP JSON-RPC (encapsulated via [`EthInterface`]).
#[derive(Debug)]
Expand Down Expand Up @@ -178,6 +179,7 @@ impl EthClient for EthHttpQueryClient {
// check whether the error is related to having too many results
if err_message.contains(TOO_MANY_RESULTS_INFURA)
|| err_message.contains(TOO_MANY_RESULTS_ALCHEMY)
|| err_message.contains(TOO_MANY_RESULTS_RETH)
{
// get the numeric block ids
let from_number = match from {
Expand Down
Loading