diff --git a/web3_proxy/src/rpcs/connection.rs b/web3_proxy/src/rpcs/connection.rs index 3998f6c3..3e7cf6bd 100644 --- a/web3_proxy/src/rpcs/connection.rs +++ b/web3_proxy/src/rpcs/connection.rs @@ -617,7 +617,8 @@ impl Web3Connection { if let Some(x) = &*conn.head_block.read() { // if this block is too old, return an error so we reconnect if x.lag() > 0 { - return Err(anyhow::anyhow!("provider is lagged")); + // TODO: instead of a full reconnect, we should maybe just set it to None + return Err(anyhow::anyhow!("{} is lagged: {:?}", conn, x)); } }