reth_db

Module models

Expand description

Implements data structures specific to the database

Modules§

Structs§

  • Account as it is saved in the database.
  • [Address] concatenated with [StorageKey]. Used by reth_etl and history stages.
  • [BlockNumber] concatenated with [Address].
  • Client version that accessed the database.
  • Wrapper struct so it can use StructFlags from Compact, when used as pure table values.
  • Placeholder struct for when there is no need for a fieldset. Doesn’t actually write or read any data.
  • Wrapper struct so it can use StructFlags from Compact, when used as pure table values.
  • Fieldset that facilitates compacting the parent type. Used bytes: 1 | Unused bits: 4
  • Wrapper struct so it can use StructFlags from Compact, when used as pure table values.
  • Fieldset that facilitates compacting the parent type. Used bytes: 1 | Unused bits: 2
  • A data structure that uses Roaring Bitmaps to efficiently store a list of integers.
  • Sometimes data can be too big to be saved for a single key. This helps out by dividing the data into different shards. Example:
  • The storage of the block body indices.
  • The storage representation of a block’s ommers.
  • The storage representation of block withdrawals.

Type Aliases§