Skip to content

Commit

Permalink
fix(op): empty receipts for block not counted by file client (#10581)
Browse files Browse the repository at this point in the history
  • Loading branch information
emhane authored Aug 29, 2024
1 parent a4f405a commit c228fe1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion crates/net/downloaders/src/file_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,6 @@ impl ChunkedFileReader {
/// chunk to read.
async fn read_next_chunk(&mut self) -> Result<Option<u64>, io::Error> {
if self.file_byte_len == 0 && self.chunk.is_empty() {
dbg!(self.chunk.is_empty());
// eof
return Ok(None)
}
Expand Down
3 changes: 0 additions & 3 deletions crates/optimism/cli/src/commands/import_receipts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,6 @@ where
debug_assert!(genesis_receipts.is_empty());
// this ensures the execution outcome and static file producer start at block 1
first_block = 1;
// we don't count this as decoded so the partial import check later does not error if
// this branch is executed
total_decoded_receipts -= 1; // safe because chunk will be `None` if empty
}

// We're reusing receipt writing code internal to
Expand Down

0 comments on commit c228fe1

Please sign in to comment.