mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: remove segment argument from increment_block (#9977)
This commit is contained in:
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user