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§
pub use validate::validate;pub use validate::validate_solution;
Modules§
- Provides the node’s
ConnectionPoolimplementation and related items. - Validation
Structs§
- Wrapper around
watch::Receiverto listen to new blocks. - Wrapper around
watch::Senderto 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
ConnectionPoolfrom the given configuration. - Ensures that a big bang block exists in the DB for the given
BigBangconfiguration. - Optionally run the relayer and state derivation and validation streams.