mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-15 19:02:42 +00:00
Revert "Revert "renames, remove , wrap BlockWrapper enum to make descontruction private""
This reverts commit 1931a442dc.
This commit is contained in:
@@ -1699,7 +1699,7 @@ impl<T: BeaconChainTypes> BeaconProcessor<T> {
|
||||
message_id,
|
||||
peer_id,
|
||||
peer_client,
|
||||
BlockWrapper::Block(block),
|
||||
block.into(),
|
||||
work_reprocessing_tx,
|
||||
duplicate_cache,
|
||||
seen_timestamp,
|
||||
@@ -1721,7 +1721,7 @@ impl<T: BeaconChainTypes> BeaconProcessor<T> {
|
||||
message_id,
|
||||
peer_id,
|
||||
peer_client,
|
||||
BlockWrapper::BlockAndBlob(block_sidecar_pair),
|
||||
block_sidecar_pair.into(),
|
||||
work_reprocessing_tx,
|
||||
duplicate_cache,
|
||||
seen_timestamp,
|
||||
|
||||
@@ -230,10 +230,10 @@ impl<T: BeaconChainTypes> Worker<T> {
|
||||
Ok((Some(block), Some(blobs))) => {
|
||||
self.send_response(
|
||||
peer_id,
|
||||
Response::BlobsByRoot(Some(Arc::new(SignedBeaconBlockAndBlobsSidecar {
|
||||
Response::BlobsByRoot(Some(SignedBeaconBlockAndBlobsSidecar {
|
||||
beacon_block: block,
|
||||
blobs_sidecar: blobs,
|
||||
}))),
|
||||
})),
|
||||
request_id,
|
||||
);
|
||||
send_block_count += 1;
|
||||
|
||||
@@ -188,14 +188,7 @@ impl<T: BeaconChainTypes> Worker<T> {
|
||||
let end_slot = downloaded_blocks.last().map(|b| b.slot().as_u64());
|
||||
let sent_blocks = downloaded_blocks.len();
|
||||
|
||||
let unwrapped = downloaded_blocks
|
||||
.into_iter()
|
||||
.map(|block| match block {
|
||||
BlockWrapper::Block(block) => block,
|
||||
//FIXME(sean) handle blobs in backfill
|
||||
BlockWrapper::BlockAndBlob(_) => todo!(),
|
||||
})
|
||||
.collect();
|
||||
let unwrapped = downloaded_blocks.into_iter().map(|_| todo!()).collect();
|
||||
|
||||
match self.process_backfill_blocks(unwrapped) {
|
||||
(_, Ok(_)) => {
|
||||
|
||||
Reference in New Issue
Block a user