Skip to main content

Module options

Module options 

Source

Structs§

ConsensusPruningOptions
Pruning parameters for ephemeral consensus storage.
Options
Options for database-backed persistence, supporting both Postgres and SQLite.
PostgresOptions
Options for Postgres-backed persistence.
PruningOptions
Pruning parameters.
SerializableRetryOptions
Configuration for retrying transactions aborted by PostgreSQL serialization conflicts (error 40001). Under SERIALIZABLE isolation these aborts are expected and safe to retry from scratch.
SqliteOptions

Enums§

SqlBackendOptions
Options wrapped for the backend Options::embedded_db selects.
SqlPool 🔒
A connection pool for whichever backend Options::embedded_db selects.

Constants§

DECIDE_GAP_FILL_HORIZON 🔒
How far behind the newest persisted decide an out-of-order (“gap-fill”) decide can still arrive. Mirrors DECIDE_BUFFER in hotshot-new-protocol; a leaf missing further behind the watermark than this will never be filled in by consensus.
DEFAULT_ARCHIVE_STATE_MIN_RETENTION
A few days of heights at mainnet rates, and what binds whenever the light client’s history is shorter than that.

Functions§

build_sqlite_path
The path of the SQLite database under the base directory path.
within_gap_fill_horizon 🔒
Whether the height gap directly below the leaf at view can still be filled by a late decide: the missing view (at most view - 1) must be within DECIDE_GAP_FILL_HORIZON of watermark, the newest persisted decide.