diff --git a/crates/consensus/debug-client/src/providers/rpc.rs b/crates/consensus/debug-client/src/providers/rpc.rs index 7a8c38ba47..22767d0db5 100644 --- a/crates/consensus/debug-client/src/providers/rpc.rs +++ b/crates/consensus/debug-client/src/providers/rpc.rs @@ -1,5 +1,5 @@ use crate::BlockProvider; -use alloy_provider::{ConnectionConfig, Network, Provider, ProviderBuilder}; +use alloy_provider::{ConnectionConfig, Network, Provider, ProviderBuilder, WebSocketConfig}; use alloy_transport::TransportResult; use futures::{Stream, StreamExt}; use reth_node_api::Block; @@ -29,7 +29,12 @@ impl RpcBlockProvider { ProviderBuilder::default() .connect_with_config( rpc_url, - ConnectionConfig::default().with_max_retries(u32::MAX), + ConnectionConfig::default().with_max_retries(u32::MAX).with_ws_config( + WebSocketConfig::default() + // allow larger messages/frames for big blocks + .max_frame_size(Some(128 * 1024 * 1024)) + .max_message_size(Some(128 * 1024 * 1024)), + ), ) .await?, ),