mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-17 12:58:31 +00:00
Add range sync tests (#8989)
Co-Authored-By: dapplion <35266934+dapplion@users.noreply.github.com>
This commit is contained in:
@@ -421,7 +421,11 @@ pub enum Work<E: EthSpec> {
|
||||
IgnoredRpcBlock {
|
||||
process_fn: BlockingFn,
|
||||
},
|
||||
ChainSegment(AsyncFn),
|
||||
ChainSegment {
|
||||
process_fn: AsyncFn,
|
||||
/// (chain_id, batch_epoch) for test observability
|
||||
process_id: (u32, u64),
|
||||
},
|
||||
ChainSegmentBackfill(BlockingFn),
|
||||
Status(BlockingFn),
|
||||
BlocksByRangeRequest(AsyncFn),
|
||||
@@ -1473,7 +1477,7 @@ impl<E: EthSpec> BeaconProcessor<E> {
|
||||
} => task_spawner.spawn_blocking(move || {
|
||||
process_batch(aggregates);
|
||||
}),
|
||||
Work::ChainSegment(process_fn) => task_spawner.spawn_async(async move {
|
||||
Work::ChainSegment { process_fn, .. } => task_spawner.spawn_async(async move {
|
||||
process_fn.await;
|
||||
}),
|
||||
Work::UnknownBlockAttestation { process_fn }
|
||||
|
||||
Reference in New Issue
Block a user