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.

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.

Functions§

  • Create a new ConnectionPool from the given configuration.
  • Run the relayer and state derivation and validation streams.