mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-14 10:22:38 +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:
@@ -2,6 +2,7 @@ use crate::version::inconsistent_fork_rejection;
|
||||
use crate::{ExecutionOptimistic, state_id::checkpoint_slot_and_execution_optimistic};
|
||||
use beacon_chain::kzg_utils::reconstruct_blobs;
|
||||
use beacon_chain::{BeaconChain, BeaconChainError, BeaconChainTypes, WhenSlotSkipped};
|
||||
use eth2::beacon_response::{ExecutionOptimisticFinalizedMetadata, UnversionedResponse};
|
||||
use eth2::types::BlockId as CoreBlockId;
|
||||
use eth2::types::DataColumnIndicesQuery;
|
||||
use eth2::types::{BlobIndicesQuery, BlobWrapper, BlobsVersionedHashesQuery};
|
||||
@@ -10,8 +11,7 @@ use std::str::FromStr;
|
||||
use std::sync::Arc;
|
||||
use types::{
|
||||
BlobSidecarList, DataColumnSidecarList, EthSpec, FixedBytesExtended, ForkName, Hash256,
|
||||
SignedBeaconBlock, SignedBlindedBeaconBlock, Slot, UnversionedResponse,
|
||||
beacon_response::ExecutionOptimisticFinalizedMetadata,
|
||||
SignedBeaconBlock, SignedBlindedBeaconBlock, Slot,
|
||||
};
|
||||
use warp::Rejection;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user