Module mainnet_lib::db_sync::in_memory
source · Structs
- Mock of real cardano db sync. At this moment we only stores transactions metadata as the only purpose of existance for this struct is to provide catalyst voting registrations Struct can be persisted and restored from json file using
serde_json
. - thread safe
InMemoryDbSync
. It has inner structdb_sync
with rw lock guard and handle to update thread which listen toInMemoryNode
mock block updates
Enums
- Db sync error
Traits
- Basic converter from absolute slot number and {epoch,slot} pair