Crate essential_node

source
Expand description

The Essential node implementation.

The primary API for accessing blocks and contracts is provided via the ConnectionPool type, accessible via the [db] function.

The node, via the run function:

  • Runs the relayer stream and syncs blocks.
  • Derives state from the synced blocks.
  • Performs validation.

Re-exports§

Modules§

Structs§

  • Wrapper around watch::Receiver to listen to new blocks.
  • Wrapper around watch::Sender to notify of new blocks.
  • Handle for closing or joining the relayer, state derivation and validation streams.
  • Options for running the node.

Functions§

  • Create a new ConnectionPool from the given configuration.
  • Ensures that a big bang block exists in the DB for the given BigBang configuration.
  • Optionally run the relayer and state derivation and validation streams.