Skip to main content

Module static_file

Module static_file 

Source
Available on crate feature provider only.
Expand description

reth’s static file database table import and access

Structs§

AccountChangesetMask
Mask for selecting a single changeset from AccountChangesets static file segment
BlockHashMask
Mask for selecting a block hash value from Headers static file segment
HeaderMask
Mask for selecting a single header from Headers static file segment
HeaderWithHashMask
Mask for selecting a header along with block hash from Headers static file segment
ReceiptMask
Mask for selecting a single receipt from Receipts static file segment
StaticFileCursor
Cursor of a static file segment.
StaticFileEntry
A static file found on disk.
StorageChangesetMask
Mask for selecting a single changeset from StorageChangesets static file segment
TDWithHashMask
Mask for selecting a total difficulty along with block hash from Headers static file segment
TotalDifficultyMask
Mask for selecting a total difficulty value from Headers static file segment
TransactionMask
Mask for selecting a single transaction from Transactions static file segment
TransactionSenderMask
Mask for selecting a single transaction sender from TransactionSenders static file segment

Constants§

CONFIG_FILE_EXTENSION
The file extension used for configuration files.
OFFSETS_FILE_EXTENSION
The file extension used for offsets files.

Traits§

ColumnSelectorOne
Trait for specifying a mask to select one column value.
ColumnSelectorThree
Trait for specifying a mask to select three column values.
ColumnSelectorTwo
Trait for specifying a mask to select two column values.

Functions§

iter_static_files
Given the static_files directory path, it returns a list over the existing static_files organized by StaticFileSegment. Each segment has a sorted list of block ranges and segment headers as presented in the file configuration.
last_missing_block
Returns the last missing block at or below tip, or None if coverage reaches genesis. Ranges must be ordered by decreasing end block. Overlapping ranges are allowed.
read_static_file_header
Reads the segment header from the configuration of a single static file.