mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-31 05:07:12 +00:00
Refactor consensus/types (#7827)
Organize and categorize `consensus/types` into modules based on their relation to key consensus structures/concepts. This is a precursor to a sensible public interface. While this refactor is very opinionated, I am open to suggestions on module names, or type groupings if my current ones are inappropriate. Co-Authored-By: Mac L <mjladson@pm.me>
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
//! Eventually it would be ideal to publish this crate on crates.io, however we have some local
|
||||
//! dependencies preventing this presently.
|
||||
|
||||
pub mod beacon_response;
|
||||
pub mod error;
|
||||
#[cfg(feature = "lighthouse")]
|
||||
pub mod lighthouse;
|
||||
@@ -15,10 +16,14 @@ pub mod lighthouse_vc;
|
||||
pub mod mixin;
|
||||
pub mod types;
|
||||
|
||||
pub use beacon_response::{
|
||||
BeaconResponse, EmptyMetadata, ExecutionOptimisticFinalizedBeaconResponse,
|
||||
ExecutionOptimisticFinalizedMetadata, ForkVersionedResponse, UnversionedResponse,
|
||||
};
|
||||
|
||||
pub use self::error::{Error, ok_or_error, success_or_error};
|
||||
use self::mixin::{RequestAccept, ResponseOptional};
|
||||
use self::types::*;
|
||||
use ::types::beacon_response::ExecutionOptimisticFinalizedBeaconResponse;
|
||||
use educe::Educe;
|
||||
use futures::Stream;
|
||||
use futures_util::StreamExt;
|
||||
|
||||
Reference in New Issue
Block a user