mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-17 20:02:43 +00:00
Initial commit
This commit is contained in:
@@ -985,7 +985,7 @@ impl<T: BeaconChainTypes> Worker<T> {
|
||||
)
|
||||
.await
|
||||
{
|
||||
Ok(block_root) => {
|
||||
Ok(BlockProcessingResult::Verified(block_root)) => {
|
||||
metrics::inc_counter(&metrics::BEACON_PROCESSOR_GOSSIP_BLOCK_IMPORTED_TOTAL);
|
||||
|
||||
if reprocess_tx
|
||||
@@ -1012,6 +1012,9 @@ impl<T: BeaconChainTypes> Worker<T> {
|
||||
|
||||
self.chain.recompute_head_at_current_slot().await;
|
||||
}
|
||||
Ok(BlockProcessingResult::AvailabilityPending(executed_block)) => {
|
||||
// cache in blob cache and make rpc request for blob
|
||||
}
|
||||
Err(BlockError::ParentUnknown(block)) => {
|
||||
// Inform the sync manager to find parents for this block
|
||||
// This should not occur. It should be checked by `should_forward_block`
|
||||
|
||||
@@ -91,7 +91,7 @@ impl<T: BeaconChainTypes> Worker<T> {
|
||||
.map_err(BlockError::BlobValidation);
|
||||
|
||||
let result = match available_block {
|
||||
Ok(block) => {
|
||||
Ok(BlockProcessingResult::Verified(block)) => {
|
||||
self.chain
|
||||
.process_block(
|
||||
block_root,
|
||||
@@ -101,6 +101,10 @@ impl<T: BeaconChainTypes> Worker<T> {
|
||||
)
|
||||
.await
|
||||
}
|
||||
Ok(BlockProcessingResult::AvailabilityPending(executed_block)) => {
|
||||
// Shouldn't happen as sync should only send blocks for processing
|
||||
// after sending blocks into the availability cache.
|
||||
}
|
||||
Err(e) => Err(e),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user