File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -332,18 +332,17 @@ where
332
332
for ( raw_log, decoded_log, _) in group {
333
333
let block_number =
334
334
raw_log. block_number . ok_or ( FilterLogError :: MissingBlockNumber ) ?;
335
- let log_timestamp = raw_log. block_timestamp ;
336
335
// if the log is missing the block timestamp, we need to fetch it.
337
336
// the block timestamp is necessary in order to derive the beacon
338
337
// slot and query the blobs.
339
- let block_timestamp = if log_timestamp. is_none ( ) {
338
+ let block_timestamp = if let Some ( ts) = raw_log. block_timestamp {
339
+ ts
340
+ } else {
340
341
self . execution_provider
341
342
. get_block ( block_number. into ( ) )
342
343
. await ?
343
344
. map ( |b| b. header . timestamp )
344
345
. ok_or ( FilterLogError :: MissingBlockTimestamp ) ?
345
- } else {
346
- log_timestamp. expect ( "checked for Some(...)" )
347
346
} ;
348
347
let batch_index =
349
348
decoded_log. batch_index . uint_try_to ( ) . expect ( "u256 to u64 conversion error" ) ;
You can’t perform that action at this time.
0 commit comments