Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Action in single_block_component_processed #5564

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add continue action for when we are awaiting other parts of missing c…
…omponents
  • Loading branch information
realbigsean committed Apr 15, 2024
commit cb00af8b6a1201443d0ee7f3ea049eaafbf53230
6 changes: 5 additions & 1 deletion beacon_node/network/src/sync/block_lookups/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ enum Action {
Retry,
ParentUnknown { parent_root: Hash256, slot: Slot },
Drop,
Continue,
}

pub struct BlockLookups<T: BeaconChainTypes> {
Expand Down Expand Up @@ -833,7 +834,7 @@ impl<T: BeaconChainTypes> BlockLookups<T> {
lookup.blob_request_state.state.on_processing_failure();
Action::Retry
} else {
Action::Drop
Action::Continue
}
}
BlockProcessingResult::Ignored => {
Expand Down Expand Up @@ -922,6 +923,9 @@ impl<T: BeaconChainTypes> BlockLookups<T> {
// drop with noop
self.update_metrics();
}
Action::Continue => {
self.single_block_lookups.insert(target_id, lookup);
}
}
}

Expand Down
Loading