chore: bump default max logs (#3498)

This commit is contained in:
Matthias Seitz
2023-06-30 13:42:03 +02:00
committed by GitHub
parent 20ed70b1c3
commit 07e81c0e7e
2 changed files with 4 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
use crate::{
constants,
error::{RpcError, ServerKind},
eth::DEFAULT_MAX_LOGS_IN_RESPONSE,
eth::DEFAULT_MAX_LOGS_PER_RESPONSE,
};
use hyper::header::AUTHORIZATION;
pub use jsonrpsee::server::ServerBuilder;
@@ -67,7 +67,7 @@ where
provider,
pool,
eth_cache.clone(),
DEFAULT_MAX_LOGS_IN_RESPONSE,
DEFAULT_MAX_LOGS_PER_RESPONSE,
Box::new(executor.clone()),
);
launch_with_eth_api(eth_api, eth_filter, engine_api, socket_addr, secret).await

View File

@@ -8,7 +8,7 @@ use reth_rpc::{
use serde::{Deserialize, Serialize};
/// The default maximum of logs in a single response.
pub(crate) const DEFAULT_MAX_LOGS_IN_RESPONSE: usize = 10_000;
pub(crate) const DEFAULT_MAX_LOGS_PER_RESPONSE: usize = 20_000;
/// The default maximum number of concurrently executed tracing calls
pub(crate) const DEFAULT_MAX_TRACING_REQUESTS: u32 = 25;
@@ -45,7 +45,7 @@ impl Default for EthConfig {
cache: EthStateCacheConfig::default(),
gas_oracle: GasPriceOracleConfig::default(),
max_tracing_requests: DEFAULT_MAX_TRACING_REQUESTS,
max_logs_per_response: DEFAULT_MAX_LOGS_IN_RESPONSE,
max_logs_per_response: DEFAULT_MAX_LOGS_PER_RESPONSE,
}
}
}