Fix attestation queue length metric (#6924)

We were using the wrong queue length for attestation work event metrics.
This commit is contained in:
Michael Sproul
2025-02-06 18:08:20 +11:00
committed by GitHub
parent a4e3f361bf
commit 364a978f12

View File

@@ -1430,7 +1430,7 @@ impl<E: EthSpec> BeaconProcessor<E> {
if let Some(modified_queue_id) = modified_queue_id {
let queue_len = match modified_queue_id {
WorkType::GossipAttestation => aggregate_queue.len(),
WorkType::GossipAttestation => attestation_queue.len(),
WorkType::UnknownBlockAttestation => unknown_block_attestation_queue.len(),
WorkType::GossipAttestationBatch => 0, // No queue
WorkType::GossipAggregate => aggregate_queue.len(),