Add range sync tests (#8989)

Co-Authored-By: dapplion <35266934+dapplion@users.noreply.github.com>
This commit is contained in:
Lion - dapplion
2026-03-31 00:07:22 -05:00
committed by GitHub
parent 2fb69f84c0
commit bc5d8c9f90
5 changed files with 781 additions and 552 deletions

View File

@@ -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 }