File tree Expand file tree Collapse file tree 4 files changed +15
-5
lines changed Expand file tree Collapse file tree 4 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -332,7 +332,7 @@ async fn live_indexing_stream(
332332
333333 // this is used for less busy chains to make sure they know rindexer is still alive
334334 let mut last_no_new_block_log_time = Instant :: now ( ) ;
335- let log_no_new_block_interval = Duration :: from_secs ( 20 ) ;
335+ let log_no_new_block_interval = Duration :: from_secs ( 300 ) ;
336336
337337 loop {
338338 tokio:: time:: sleep ( tokio:: time:: Duration :: from_millis ( 200 ) ) . await ;
@@ -350,7 +350,7 @@ async fn live_indexing_stream(
350350 ) ;
351351 if last_no_new_block_log_time. elapsed ( ) >= log_no_new_block_interval {
352352 info ! (
353- "{} - {} - No new blocks published in the last 20 seconds - latest block number {}" ,
353+ "{} - {} - No new blocks published in the last 5 minutes - latest block number {}" ,
354354 info_log_name,
355355 IndexingEventProgressStatus :: Live . log( ) ,
356356 last_seen_block_number,
Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ async fn live_indexing_for_contract_event_dependencies<'a>(
234234 }
235235
236236 // this is used for less busy chains to make sure they know rindexer is still alive
237- let log_no_new_block_interval = Duration :: from_secs ( 20 ) ;
237+ let log_no_new_block_interval = Duration :: from_secs ( 300 ) ;
238238
239239 loop {
240240 tokio:: time:: sleep ( Duration :: from_millis ( 200 ) ) . await ;
@@ -267,7 +267,7 @@ async fn live_indexing_for_contract_event_dependencies<'a>(
267267 log_no_new_block_interval
268268 {
269269 info ! (
270- "{} - {} - No new blocks published in the last 20 seconds - latest block number {}" ,
270+ "{} - {} - No new blocks published in the last 5 minutes - latest block number {}" ,
271271 & config. info_log_name,
272272 IndexingEventProgressStatus :: Live . log( ) ,
273273 latest_block_number
Original file line number Diff line number Diff line change @@ -159,6 +159,7 @@ pub async fn start_indexing(
159159
160160 let start_block = last_known_start_block
161161 . unwrap_or ( network_contract. start_block . unwrap_or ( latest_block) ) ;
162+ info ! ( "{} start_block is {}" , event. info_log_name( ) , start_block) ;
162163 let end_block =
163164 std:: cmp:: min ( network_contract. end_block . unwrap_or ( latest_block) , latest_block) ;
164165 if let Some ( end_block) = network_contract. end_block {
Original file line number Diff line number Diff line change @@ -73,7 +73,16 @@ impl JsonRpcCachedProvider {
7373 & self ,
7474 filter : & RindexerEventFilter ,
7575 ) -> Result < Vec < WrappedLog > , ProviderError > {
76- self . provider . request ( "eth_getLogs" , [ filter. raw_filter ( ) ] ) . await
76+ // rindexer_info!("get_logs DEBUG [{:?}]", filter.raw_filter());
77+ // LEAVING FOR NOW CONTEXT: TEMP FIX TO MAKE SURE FROM BLOCK IS ALWAYS SET
78+ // let mut filter = filter.raw_filter().clone();
79+ // if filter.get_from_block().is_none() {
80+ // filter = filter.from_block(BlockNumber::Earliest);
81+ // }
82+ // rindexer_info!("get_logs DEBUG AFTER [{:?}]", filter);
83+ let result = self . provider . request ( "eth_getLogs" , [ filter. raw_filter ( ) ] ) . await ?;
84+ // rindexer_info!("get_logs RESULT [{:?}]", result);
85+ Ok ( result)
7786 }
7887
7988 pub async fn get_chain_id ( & self ) -> Result < U256 , ProviderError > {
You can’t perform that action at this time.
0 commit comments