mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-15 10:52:43 +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:
@@ -1,16 +1,14 @@
|
||||
use crate::api_types::EndpointVersion;
|
||||
use eth2::beacon_response::{
|
||||
BeaconResponse, ExecutionOptimisticFinalizedBeaconResponse,
|
||||
ExecutionOptimisticFinalizedMetadata, ForkVersionedResponse, UnversionedResponse,
|
||||
};
|
||||
use eth2::{
|
||||
CONSENSUS_BLOCK_VALUE_HEADER, CONSENSUS_VERSION_HEADER, CONTENT_TYPE_HEADER,
|
||||
EXECUTION_PAYLOAD_BLINDED_HEADER, EXECUTION_PAYLOAD_VALUE_HEADER, SSZ_CONTENT_TYPE_HEADER,
|
||||
};
|
||||
use serde::Serialize;
|
||||
use types::{
|
||||
BeaconResponse, ForkName, ForkVersionedResponse, InconsistentFork, Uint256,
|
||||
UnversionedResponse,
|
||||
beacon_response::{
|
||||
ExecutionOptimisticFinalizedBeaconResponse, ExecutionOptimisticFinalizedMetadata,
|
||||
},
|
||||
};
|
||||
use types::{ForkName, InconsistentFork, Uint256};
|
||||
use warp::reply::{self, Reply, Response};
|
||||
|
||||
pub const V1: EndpointVersion = EndpointVersion(1);
|
||||
|
||||
Reference in New Issue
Block a user