Structsยง
- Consensus
Pruning Options - Pruning parameters for ephemeral consensus storage.
- Decided
Leaf ๐ - Options
- Options for database-backed persistence, supporting both Postgres and SQLite.
- Persistence
- Postgres-backed persistence.
- 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ยง
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. - PG_
SERIALIZATION_ ๐FAILURE_ CODE - PostgreSQL error code for serialization failures under SERIALIZABLE isolation. Transactions that fail with this code are safe to retry from scratch.
- PRUNE_
TABLES ๐
Functionsยง
- build_
sqlite_ path - decide_
events_ ๐from_ chain - deserialize_
authenticated_ ๐validator_ map - prune_
to_ ๐view - 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.