mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: add safety check on StaticFileProviderRW::increment_block (#7137)
Co-authored-by: Alexey Shekhirin <a.shekhirin@gmail.com>
This commit is contained in:
@ -34,7 +34,7 @@ impl<DB: Database> Segment<DB> for Receipts {
|
||||
|
||||
for block in block_range {
|
||||
let _static_file_block =
|
||||
static_file_writer.increment_block(StaticFileSegment::Receipts)?;
|
||||
static_file_writer.increment_block(StaticFileSegment::Receipts, block)?;
|
||||
debug_assert_eq!(_static_file_block, block);
|
||||
|
||||
let block_body_indices = provider
|
||||
|
||||
@ -36,7 +36,7 @@ impl<DB: Database> Segment<DB> for Transactions {
|
||||
|
||||
for block in block_range {
|
||||
let _static_file_block =
|
||||
static_file_writer.increment_block(StaticFileSegment::Transactions)?;
|
||||
static_file_writer.increment_block(StaticFileSegment::Transactions, block)?;
|
||||
debug_assert_eq!(_static_file_block, block);
|
||||
|
||||
let block_body_indices = provider
|
||||
|
||||
Reference in New Issue
Block a user