From e4939538cddc6846f3e9343db595cebbee61bcb3 Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Wed, 19 Jan 2022 15:20:48 +0100 Subject: [PATCH] fix non-totalized validator metric (#3297) ...when running on host with many validators, this explodes --- beacon_chain/validators/validator_monitor.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/beacon_chain/validators/validator_monitor.nim b/beacon_chain/validators/validator_monitor.nim index 1ca172745..285720d73 100644 --- a/beacon_chain/validators/validator_monitor.nim +++ b/beacon_chain/validators/validator_monitor.nim @@ -584,8 +584,8 @@ proc registerAttestationInBlock*( inclusion_lag = (blck.slot - data.slot) - MIN_ATTESTATION_INCLUSION_DELAY epoch = data.slot.epoch - validator_monitor_attestation_in_block_total.inc(1, ["block", id]) - validator_monitor_attestation_in_block_delay_slots.set(inclusion_lag.int64, ["block", id]) + validator_monitor_attestation_in_block_total.inc(1, ["block", metricId]) + validator_monitor_attestation_in_block_delay_slots.set(inclusion_lag.int64, ["block", metricId]) info "Attestation included in block", attestation_data = shortLog(data), @@ -682,7 +682,7 @@ proc registerSyncAggregateInBlock*( pubkey: ValidatorPubKey) = self.withMonitor(pubkey): let id = monitor.id - validator_monitor_sync_committee_message_in_block_total.inc(1, ["block", id]) + validator_monitor_sync_committee_message_in_block_total.inc(1, ["block", metricId]) info "Sync signature included in block", head = beacon_block_root, slot = slot, validator = id