mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix(cli): fix ImportReceiptsOp (#11216)
This commit is contained in:
@ -5,7 +5,7 @@ use reth_primitives::{Receipt, Receipts};
|
||||
use tokio::io::AsyncReadExt;
|
||||
use tokio_stream::StreamExt;
|
||||
use tokio_util::codec::{Decoder, FramedRead};
|
||||
use tracing::trace;
|
||||
use tracing::{trace, warn};
|
||||
|
||||
use crate::{DecodedFileChunk, FileClientError};
|
||||
|
||||
@ -106,6 +106,11 @@ where
|
||||
|
||||
match receipt {
|
||||
Some(ReceiptWithBlockNumber { receipt, number }) => {
|
||||
if block_number > number {
|
||||
warn!(target: "downloaders::file", previous_block_number = block_number, "skipping receipt from a lower block: {number}");
|
||||
continue
|
||||
}
|
||||
|
||||
total_receipts += 1;
|
||||
|
||||
if first_block.is_none() {
|
||||
|
||||
Reference in New Issue
Block a user