Skip to content

Commit e10bd04

Browse files
paulhaunerWoodpile37
authored andcommitted
Add more metrics for tracking sync messages (sigp#4308)
## Issue Addressed NA ## Proposed Changes Adds metrics to track validators that are submitting equivocating (but not slashable) sync messages. This follows on from some research we've been doing in a separate fork of LH. ## Additional Info @jimmygchen and @michaelsproul have already run their eyes over this so it should be easy to get into v4.2.0, IMO.
1 parent a5f2e2f commit e10bd04

File tree

6 files changed

+473
-77
lines changed

6 files changed

+473
-77
lines changed

beacon_node/beacon_chain/src/metrics.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -874,6 +874,14 @@ lazy_static! {
874874
"beacon_sync_committee_message_gossip_verification_seconds",
875875
"Full runtime of sync contribution gossip verification"
876876
);
877+
pub static ref SYNC_MESSAGE_EQUIVOCATIONS: Result<IntCounter> = try_create_int_counter(
878+
"sync_message_equivocations_total",
879+
"Number of sync messages with the same validator index for different blocks"
880+
);
881+
pub static ref SYNC_MESSAGE_EQUIVOCATIONS_TO_HEAD: Result<IntCounter> = try_create_int_counter(
882+
"sync_message_equivocations_to_head_total",
883+
"Number of sync message which conflict with a previous message but elect the head"
884+
);
877885

878886
/*
879887
* Sync Committee Contribution Verification

0 commit comments

Comments
 (0)