Cleanup consensus/types re-exports (#8643)

Removes some of the temporary re-exports in `consensus/types`.

I am doing this in multiple parts to keep each diff small.


Co-Authored-By: Mac L <mjladson@pm.me>
This commit is contained in:
Mac L
2026-01-15 06:23:55 +04:00
committed by GitHub
parent 605ef8e8e6
commit 1abc41e337
21 changed files with 24 additions and 47 deletions

View File

@@ -12,9 +12,7 @@ use eth2::types::{
ValidatorsRequestBody,
};
use std::sync::Arc;
use types::{
AttestationShufflingId, CommitteeCache, Error as BeaconStateError, EthSpec, RelativeEpoch,
};
use types::{AttestationShufflingId, BeaconStateError, CommitteeCache, EthSpec, RelativeEpoch};
use warp::filters::BoxedFilter;
use warp::{Filter, Reply};
use warp_utils::query::multi_key_query;

View File

@@ -16,7 +16,7 @@ use lighthouse_tracing::{SPAN_PRODUCE_BLOCK_V2, SPAN_PRODUCE_BLOCK_V3};
use ssz::Encode;
use std::sync::Arc;
use tracing::instrument;
use types::{payload::BlockProductionVersion, *};
use types::{execution::BlockProductionVersion, *};
use warp::{
Reply,
hyper::{Body, Response},

View File

@@ -17,8 +17,8 @@ use std::collections::HashMap;
use tokio::sync::mpsc::UnboundedSender;
use tracing::{debug, error, warn};
use types::{
BeaconStateError, Epoch, EthSpec, SignedContributionAndProof, SyncCommitteeMessage, SyncDuty,
SyncSubnetId, slot_data::SlotData,
BeaconStateError, Epoch, EthSpec, SignedContributionAndProof, SlotData, SyncCommitteeMessage,
SyncDuty, SyncSubnetId,
};
/// The struct that is returned to the requesting HTTP client.

View File

@@ -44,7 +44,7 @@ use std::convert::TryInto;
use std::sync::Arc;
use tokio::time::Duration;
use tree_hash::TreeHash;
use types::application_domain::ApplicationDomain;
use types::ApplicationDomain;
use types::{
Domain, EthSpec, ExecutionBlockHash, Hash256, MainnetEthSpec, RelativeEpoch, SelectionProof,
SignedRoot, SingleAttestation, Slot, attestation::AttestationBase,