mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-10 04:01:51 +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:
@@ -3,13 +3,14 @@ use crate::version::{
|
||||
beacon_response,
|
||||
};
|
||||
use beacon_chain::{BeaconChain, BeaconChainError, BeaconChainTypes};
|
||||
use eth2::beacon_response::BeaconResponse;
|
||||
use eth2::types::{
|
||||
self as api_types, LightClientUpdate, LightClientUpdateResponseChunk,
|
||||
LightClientUpdateResponseChunkInner, LightClientUpdatesQuery,
|
||||
};
|
||||
use ssz::Encode;
|
||||
use std::sync::Arc;
|
||||
use types::{BeaconResponse, EthSpec, ForkName, Hash256, LightClientBootstrap};
|
||||
use types::{EthSpec, ForkName, Hash256, LightClientBootstrap};
|
||||
use warp::{
|
||||
Rejection,
|
||||
hyper::{Body, Response},
|
||||
|
||||
Reference in New Issue
Block a user