mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-14 18:32:42 +00:00
Merge branch 'unstable' of https://github.com/sigp/lighthouse into electra_attestation_changes
This commit is contained in:
@@ -1715,11 +1715,11 @@ impl<E: EthSpec> ForkVersionDeserialize for FullBlockContents<E> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<E: EthSpec> Into<BeaconBlock<E>> for FullBlockContents<E> {
|
||||
fn into(self) -> BeaconBlock<E> {
|
||||
match self {
|
||||
Self::BlockContents(block_and_sidecars) => block_and_sidecars.block,
|
||||
Self::Block(block) => block,
|
||||
impl<E: EthSpec> From<FullBlockContents<E>> for BeaconBlock<E> {
|
||||
fn from(from: FullBlockContents<E>) -> BeaconBlock<E> {
|
||||
match from {
|
||||
FullBlockContents::<E>::BlockContents(block_and_sidecars) => block_and_sidecars.block,
|
||||
FullBlockContents::<E>::Block(block) => block,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user