Module tables

Source
Expand description

Tx-pool Database tables.

§Table marker structs

This module contains all the table definitions used by cuprate_txpool.

The zero-sized structs here represents the table type; they all are essentially marker types that implement cuprate_database::Table.

Table structs are CamelCase, and their static string names used by the actual database backend are snake_case.

For example: TransactionBlobs -> transaction_blobs.

§Traits

This module also contains a set of traits for accessing all tables defined here at once.

Structs§

CachedVerificationState
Cached transaction verification state.
KnownBlobHashes
Transaction blob hashes that are in the pool.
SpentKeyImages
Spent key images.
TransactionBlobs
Serialized transaction blobs.
TransactionInfos
Transaction information.

Traits§

OpenTables
Open all tables at once.
Tables
Object containing all opened Tables in read-only mode.
TablesIter
Object containing all opened Tables in read + iter mode.
TablesMut
Object containing all opened Tables in write mode.