Structs§
- Consensus
Pruning Options - Pruning parameters for ephemeral consensus storage.
- Options
- Options for database-backed persistence, supporting both Postgres and SQLite.
- Postgres
Options - Options for Postgres-backed persistence.
- Pruning
Options - Pruning parameters.
- Serializable
Retry Options - Configuration for retrying transactions aborted by PostgreSQL serialization conflicts (error 40001). Under SERIALIZABLE isolation these aborts are expected and safe to retry from scratch.
- Sqlite
Options
Enums§
- SqlBackend
Options Optionswrapped for the backendOptions::embedded_dbselects.- SqlPool 🔒
- A connection pool for whichever backend
Options::embedded_dbselects.
Constants§
- DECIDE_
GAP_ 🔒FILL_ HORIZON - How far behind the newest persisted decide an out-of-order (“gap-fill”) decide can still
arrive. Mirrors
DECIDE_BUFFERinhotshot-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
viewcan still be filled by a late decide: the missing view (at mostview - 1) must be withinDECIDE_GAP_FILL_HORIZONofwatermark, the newest persisted decide.