Crate essential_node_db

Source
Expand description

The node’s DB interface and sqlite implementation.

The core capability of the node is to:

  1. Receive blocks from an L1 relayer and validate them.
  2. Receive contracts from the p2p network so that they’re available for validation.

As a part of satisfying these requirements, this crate provides the basic functions required for safely creating the necessary tables and inserting/ querying/updating them as necessary.

Re-exports§

Modules§

  • Addressed queries query for the most recent version of a key less than or equal to a given block address or solution index. This is useful for querying un-finalized blocks where forks may exist. These queries fall back to finalized queries if the value is not found.
  • Finalized queries query for the most recent version of a key less than or equal to a given block number or solution index for blocks that have been finalized.
  • Provides the node’s ConnectionPool implementation and related items.
  • Provides the SQL statements used by essential-node-db via const strs.

Enums§

  • A database or decoding error returned by a query.

Traits§

Functions§