[][src]Crate environment

This crate aims to provide a common set of tools that can be used to create a "environment" to run Lighthouse services like the beacon_node or validator_client. This allows for the unification of creating tokio runtimes, loggers and eth2 specifications in production and in testing.

The idea is that the main thread creates an Environment, which is then used to spawn a Context which can be handed to any service that wishes to start async tasks or perform logging.



An environment where Lighthouse services can run. Used to start a production beacon node or validator client, or to run tests that involve logging and async task execution.


Builds an Environment.


An execution context that can be used by a service.