Expand description
Common helper functions for all versions of approval-voting database.
Modules§
Structs§
- Config
- The database config.
- DbBackend
DbBackend
is a concrete implementation of the higher-level Backend trait- Stored
Block Range - 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.