Crate reth_static_file

Source
Expand description

Static file producer implementation.

Modules§

segments
StaticFile segment implementations and utilities.

Structs§

HighestStaticFiles
Highest static file block numbers, per data segment.
SegmentConfig
Configuration used on the segment.
SegmentHeader
A segment header that contains information common to all segments. Used for storage.
SegmentRangeInclusive
Helper type to handle segment transaction and block INCLUSIVE ranges.
StaticFileProducer
Static File producer. It’s a wrapper around StaticFileProducer that allows to share it between threads.
StaticFileProducerInner
Static File producer routine. See StaticFileProducerInner::run for more detailed description.
StaticFileTargets
Static File targets, per data segment, measured in [BlockNumber].

Enums§

Compression
Static File compression types.
StaticFileProducerEvent
An event emitted by the static file producer.
StaticFileSegment
Segment of the data that can be moved to static files.

Constants§

DEFAULT_BLOCKS_PER_STATIC_FILE
Default static file block count.

Functions§

find_fixed_range
Each static file has a fixed number of blocks. This gives out the range where the requested block is positioned. Used for segment filename.

Type Aliases§

StaticFileProducerResult
Result of StaticFileProducerInner::run execution.
StaticFileProducerWithResult
The StaticFileProducer instance itself with the result of StaticFileProducerInner::run