We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cad89d7 + 44298c1 commit 82051b7Copy full SHA for 82051b7
crates/rpc-tester-cli/src/main.rs
@@ -106,7 +106,8 @@ pub async fn wait_for_readiness<P: Provider<AnyNetwork>>(
106
let tip2 = rpc2.get_block_number().await?;
107
108
if tip1 >= tip2 || tip2 - tip1 <= 5 {
109
- let range = tip2 - (block_size_range - 1)..=tip2;
+ let common = tip1.min(tip2);
110
+ let range = common - (block_size_range - 1)..=common;
111
info!(?range, "testing block range");
112
return Ok(range);
113
}
0 commit comments