From da00e0e433a773e0f40971a6415f3604736e0bac Mon Sep 17 00:00:00 2001 From: Eitan Seri-Levi Date: Tue, 27 Feb 2024 18:36:43 +0200 Subject: [PATCH] add TOOOs --- beacon_node/beacon_chain/src/test_utils.rs | 1 + beacon_node/beacon_chain/src/validator_monitor.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/beacon_node/beacon_chain/src/test_utils.rs b/beacon_node/beacon_chain/src/test_utils.rs index 6b85c8e4931..e9e816e809a 100644 --- a/beacon_node/beacon_chain/src/test_utils.rs +++ b/beacon_node/beacon_chain/src/test_utils.rs @@ -1654,6 +1654,7 @@ where { self.chain .import_attester_slashing(verified_attester_slashing); + // TODO add attester SSE Ok(()) } else { Err("should observe new attester slashing".to_string()) diff --git a/beacon_node/beacon_chain/src/validator_monitor.rs b/beacon_node/beacon_chain/src/validator_monitor.rs index 49a555816b8..807941047ba 100644 --- a/beacon_node/beacon_chain/src/validator_monitor.rs +++ b/beacon_node/beacon_chain/src/validator_monitor.rs @@ -1751,6 +1751,7 @@ impl ValidatorMonitor { } fn register_proposer_slashing(&self, src: &str, slashing: &ProposerSlashing) { + // TODO add proposer slashing SSE event let proposer = slashing.signed_header_1.message.proposer_index; let slot = slashing.signed_header_1.message.slot; let epoch = slot.epoch(T::slots_per_epoch()); @@ -1837,6 +1838,7 @@ impl ValidatorMonitor { validator.with_epoch_summary(epoch, |summary| summary.register_attester_slashing()); }) + // TODO add attester slashing event } /// Scrape `self` for metrics.