referrerpolicy=no-referrer-when-downgrade
Expand description

Common helper functions for all versions of approval-voting database.

Modules§

migration_helpers

Structs§

Config
The database config.
DbBackend
DbBackend is a concrete implementation of the higher-level Backend trait
StoredBlockRange
A range from earliest..last block number stored within the DB.

Enums§

Error
Errors while accessing things from the DB.

Functions§

load_all_blocks
Return all blocks which have entries in the DB, ascending, by height.
load_block_entry
Load a block entry from the aux store.
load_blocks_at_height
Load a blocks-at-height entry for a given block number.
load_candidate_entry
Load a candidate entry from the aux store in current version format.
load_stored_blocks
Load the stored-blocks key from the state.

Type Aliases§

Result
Result alias for DB errors.