Skip to content

Commit

Permalink
add TOOOs
Browse files Browse the repository at this point in the history
  • Loading branch information
eserilev committed Feb 27, 2024
1 parent 0273c05 commit da00e0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions beacon_node/beacon_chain/src/test_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
2 changes: 2 additions & 0 deletions beacon_node/beacon_chain/src/validator_monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1751,6 +1751,7 @@ impl<T: EthSpec> ValidatorMonitor<T> {
}

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());
Expand Down Expand Up @@ -1837,6 +1838,7 @@ impl<T: EthSpec> ValidatorMonitor<T> {

validator.with_epoch_summary(epoch, |summary| summary.register_attester_slashing());
})
// TODO add attester slashing event
}

/// Scrape `self` for metrics.
Expand Down

0 comments on commit da00e0e

Please sign in to comment.