mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-17 12:58:31 +00:00
Blob syncing (#24)
* add a rt is_blob_batch * use the mixed type everywhere * glue * more glue * minor fixes * fix range tests * filling in the gaps * moore filling in the gaps
This commit is contained in:
@@ -209,8 +209,10 @@ impl<T: BeaconChainTypes> Processor<T> {
|
||||
SyncId::SingleBlock { .. } | SyncId::ParentLookup { .. } => {
|
||||
unreachable!("Block lookups do not request BBRange requests")
|
||||
}
|
||||
id @ (SyncId::BackFillSync { .. } | SyncId::RangeSync { .. }) => id,
|
||||
SyncId::RangeBlockBlob { id } => unimplemented!("do it"),
|
||||
id @ (SyncId::BackFillSync { .. }
|
||||
| SyncId::RangeSync { .. }
|
||||
| SyncId::BackFillSidecarPair { .. }
|
||||
| SyncId::RangeSidecarPair { .. }) => id,
|
||||
},
|
||||
RequestId::Router => unreachable!("All BBRange requests belong to sync"),
|
||||
};
|
||||
@@ -266,11 +268,12 @@ impl<T: BeaconChainTypes> Processor<T> {
|
||||
let request_id = match request_id {
|
||||
RequestId::Sync(sync_id) => match sync_id {
|
||||
id @ (SyncId::SingleBlock { .. } | SyncId::ParentLookup { .. }) => id,
|
||||
SyncId::BackFillSync { .. } | SyncId::RangeSync { .. } => {
|
||||
SyncId::BackFillSync { .. }
|
||||
| SyncId::RangeSync { .. }
|
||||
| SyncId::RangeSidecarPair { .. }
|
||||
| SyncId::BackFillSidecarPair { .. } => {
|
||||
unreachable!("Batch syncing do not request BBRoot requests")
|
||||
}
|
||||
|
||||
SyncId::RangeBlockBlob { id } => unimplemented!("do it"),
|
||||
},
|
||||
RequestId::Router => unreachable!("All BBRoot requests belong to sync"),
|
||||
};
|
||||
@@ -298,11 +301,12 @@ impl<T: BeaconChainTypes> Processor<T> {
|
||||
let request_id = match request_id {
|
||||
RequestId::Sync(sync_id) => match sync_id {
|
||||
id @ (SyncId::SingleBlock { .. } | SyncId::ParentLookup { .. }) => id,
|
||||
SyncId::BackFillSync { .. } | SyncId::RangeSync { .. } => {
|
||||
unreachable!("Batch syncing do not request BBRoot requests")
|
||||
SyncId::BackFillSync { .. }
|
||||
| SyncId::RangeSync { .. }
|
||||
| SyncId::RangeSidecarPair { .. }
|
||||
| SyncId::BackFillSidecarPair { .. } => {
|
||||
unreachable!("Batch syncing does not request BBRoot requests")
|
||||
}
|
||||
|
||||
SyncId::RangeBlockBlob { id } => unimplemented!("do it"),
|
||||
},
|
||||
RequestId::Router => unreachable!("All BBRoot requests belong to sync"),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user