Skip to content

Commit

Permalink
fix AvsRegistryReader test (#132)
Browse files Browse the repository at this point in the history
Restore `query_block_range` value back to 10000.
  • Loading branch information
TomasArrachea authored Sep 24, 2024
1 parent 3c0416e commit 1cd59df
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/chainio/clients/avsregistry/src/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -539,9 +539,7 @@ impl AvsRegistryChainReader {

let mut operator_id_to_socket = HashMap::new();

// The block range of eth_getLogs is limited to 1024
// https://docs.blockpi.io/documentations/api-reference/arbitrum/eth_getlogs
let query_block_range = 1024;
let query_block_range = 10000;

let stop_block = if stop_block == 0 {
provider.get_block_number().await.map_err(|e| {
Expand Down Expand Up @@ -714,7 +712,7 @@ mod tests {
let avs_reader = build_avs_registry_chain_reader().await;

let _ = avs_reader
.query_existing_registered_operator_sockets(0, 2000)
.query_existing_registered_operator_sockets(0, 1000)
.await
.unwrap();
}
Expand Down

0 comments on commit 1cd59df

Please sign in to comment.