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 derive state from their solutions.
  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.

Modules§

  • 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 SQL statements used by essential-node-db via const strs.

Structs§

  • Any error that might occur during decoding of a type returned by the DB.

Enums§

  • A database or decoding error returned by a query.

Traits§

Functions§