chore: remove segment argument from increment_block (#9977)

This commit is contained in:
joshieDo
2024-08-01 11:50:49 +01:00
committed by GitHub
parent 3c2759dcc0
commit 41d5c07b7d
10 changed files with 19 additions and 24 deletions

View File

@ -29,8 +29,7 @@ impl<DB: Database> Segment<DB> for Receipts {
static_file_provider.get_writer(*block_range.start(), StaticFileSegment::Receipts)?;
for block in block_range {
let _static_file_block =
static_file_writer.increment_block(StaticFileSegment::Receipts, block)?;
let _static_file_block = static_file_writer.increment_block(block)?;
debug_assert_eq!(_static_file_block, block);
let block_body_indices = provider

View File

@ -31,8 +31,7 @@ impl<DB: Database> Segment<DB> for Transactions {
.get_writer(*block_range.start(), StaticFileSegment::Transactions)?;
for block in block_range {
let _static_file_block =
static_file_writer.increment_block(StaticFileSegment::Transactions, block)?;
let _static_file_block = static_file_writer.increment_block(block)?;
debug_assert_eq!(_static_file_block, block);
let block_body_indices = provider