@@ -1230,38 +1230,38 @@ impl Hypermap {
12301230 // and all logs are processed as if validation succeeded (Ok(true) case)
12311231
12321232 //match self.validate_log_cache(&log_cache).await {
1233- //Ok(true) => {
1234- for log in log_cache. logs {
1235- if let Some ( log_block_number) = log. block_number {
1236- if log_block_number >= request_from_block_val {
1237- all_valid_logs. push ( log) ;
1238- }
1239- } else {
1240- if from_block. is_none ( ) {
1241- all_valid_logs. push ( log) ;
1242- }
1243- }
1233+ //Ok(true) => {
1234+ for log in log_cache. logs {
1235+ if let Some ( log_block_number) = log. block_number {
1236+ if log_block_number >= request_from_block_val {
1237+ all_valid_logs. push ( log) ;
1238+ }
1239+ } else {
1240+ if from_block. is_none ( ) {
1241+ all_valid_logs. push ( log) ;
12441242 }
1245- //}
1246- //Ok(false) => {
1247- // print_to_terminal(
1248- // 1,
1249- // &format!("LogCache validation failed for cache created by {}. Discarding {} logs.",
1250- // log_cache.metadata.created_by,
1251- // log_cache.logs.len())
1252- // );
1253- //}
1254- //Err(e) => {
1255- // print_to_terminal(
1256- // 1,
1257- // &format!(
1258- // "Error validating LogCache from {}: {:?}. Discarding {} logs.",
1259- // log_cache.metadata.created_by,
1260- // e,
1261- // log_cache.logs.len()
1262- // ),
1263- // );
1264- //}
1243+ }
1244+ }
1245+ //}
1246+ //Ok(false) => {
1247+ // print_to_terminal(
1248+ // 1,
1249+ // &format!("LogCache validation failed for cache created by {}. Discarding {} logs.",
1250+ // log_cache.metadata.created_by,
1251+ // log_cache.logs.len())
1252+ // );
1253+ //}
1254+ //Err(e) => {
1255+ // print_to_terminal(
1256+ // 1,
1257+ // &format!(
1258+ // "Error validating LogCache from {}: {:?}. Discarding {} logs.",
1259+ // log_cache.metadata.created_by,
1260+ // e,
1261+ // log_cache.logs.len()
1262+ // ),
1263+ // );
1264+ //}
12651265 //}
12661266 }
12671267
0 commit comments