mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-21 14:58:31 +00:00
Temp hack to compile
This commit is contained in:
@@ -11,7 +11,7 @@ use types::{
|
|||||||
SignedBeaconBlock, SignedBeaconBlockAndBlobsSidecar, SignedBeaconBlockHeader, Slot,
|
SignedBeaconBlock, SignedBeaconBlockAndBlobsSidecar, SignedBeaconBlockHeader, Slot,
|
||||||
Transactions,
|
Transactions,
|
||||||
};
|
};
|
||||||
use types::{Epoch, ExecPayload};
|
use types::{BlobSidecarList, Epoch, ExecPayload};
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum BlobError {
|
pub enum BlobError {
|
||||||
@@ -348,15 +348,14 @@ impl<E: EthSpec> AvailableBlock<E> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn deconstruct(self) -> (Arc<SignedBeaconBlock<E>>, Option<Arc<BlobsSidecar<E>>>) {
|
pub fn deconstruct(self) -> (Arc<SignedBeaconBlock<E>>, Option<BlobSidecarList<E>>) {
|
||||||
match self.0 {
|
match self.0 {
|
||||||
AvailableBlockInner::Block(block) => (block, None),
|
AvailableBlockInner::Block(block) => (block, None),
|
||||||
AvailableBlockInner::BlockAndBlob(block_sidecar_pair) => {
|
AvailableBlockInner::BlockAndBlob(_) => {
|
||||||
let SignedBeaconBlockAndBlobsSidecar {
|
unimplemented!(
|
||||||
beacon_block,
|
"This should return a Some(BlobSidecarList)
|
||||||
blobs_sidecar,
|
after #4092"
|
||||||
} = block_sidecar_pair;
|
)
|
||||||
(beacon_block, Some(blobs_sidecar))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -374,12 +373,7 @@ impl<E: EthSpec> IntoBlockWrapper<E> for BlockWrapper<E> {
|
|||||||
|
|
||||||
impl<E: EthSpec> IntoBlockWrapper<E> for AvailableBlock<E> {
|
impl<E: EthSpec> IntoBlockWrapper<E> for AvailableBlock<E> {
|
||||||
fn into_block_wrapper(self) -> BlockWrapper<E> {
|
fn into_block_wrapper(self) -> BlockWrapper<E> {
|
||||||
let (block, blobs) = self.deconstruct();
|
unimplemented!("Block wrapper will be changed in #4092")
|
||||||
if let Some(blobs) = blobs {
|
|
||||||
BlockWrapper::BlockAndBlob(block, blobs)
|
|
||||||
} else {
|
|
||||||
BlockWrapper::Block(block)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user