Skip to content

Commit 9368e4e

Browse files
author
Zoran Cvetkov
committed
wip
1 parent 6d53249 commit 9368e4e

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

chain/ethereum/src/ethereum_adapter.rs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3028,11 +3028,7 @@ async fn fetch_block_receipts_with_retry(
30283028
.map_err(|_timeout| -> IngestorError { anyhow!(block_hash).into() })?;
30293029
let receipts_option3: Option<Vec<TransactionReceipt>> = convert_receipts(receipts_option2);
30303030
match (&receipts_option, &receipts_option3) {
3031-
(None, None) => todo!(),
3032-
(None, Some(_)) => todo!(),
3033-
(Some(_), None) => todo!(),
30343031
(Some(r1), Some(r2)) => {
3035-
// info!(logger, "NUM1: {} NUM2: {}", r1.len(), r2.len());
30363032
assert_eq!(r1.len(), r2.len());
30373033
for i in 0..r1.len() {
30383034
let mut rec1 = r1[i].clone();
@@ -3043,18 +3039,12 @@ async fn fetch_block_receipts_with_retry(
30433039
rec2.cumulative_gas_used = u64_to_u256(0);
30443040
rec2.transaction_type = None;
30453041
rec2.root = None;
3046-
// info!(logger, "R1: {:?}", r1[i]);
3047-
// info!(logger, "R2: {:?}", r2[i]);
3048-
// if r1[i] != r2[i] {
3049-
// panic!("!!!! NE !!!!");
3050-
// }
30513042
assert_eq!(rec1, rec2)
30523043
}
30533044
}
3045+
(_, _) => info!(logger, "One side of receipes are missing"),
30543046
};
30553047

3056-
// assert_eq!(receipts_option, receipts_option3);
3057-
30583048
// Check if receipts are available, and transform them if they are
30593049
match receipts_option {
30603050
Some(receipts) => {

0 commit comments

Comments
 (0)