Skip to content

Commit

Permalink
remove double event tracking
Browse files Browse the repository at this point in the history
  • Loading branch information
eserilev committed Mar 12, 2024
1 parent 504635d commit a3e42d3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
16 changes: 0 additions & 16 deletions beacon_node/beacon_chain/src/beacon_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2441,14 +2441,6 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
) -> Result<ObservationOutcome<ProposerSlashing, T::EthSpec>, Error> {
let wall_clock_state = self.wall_clock_state()?;

if let Some(event_handler) = self.event_handler.as_ref() {
if event_handler.has_proposer_slashing_subscribers() {
event_handler.register(EventKind::ProposerSlashing(Box::new(
proposer_slashing.clone(),
)));
}
}

Ok(self.observed_proposer_slashings.lock().verify_and_observe(
proposer_slashing,
&wall_clock_state,
Expand Down Expand Up @@ -2481,14 +2473,6 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
) -> Result<ObservationOutcome<AttesterSlashing<T::EthSpec>, T::EthSpec>, Error> {
let wall_clock_state = self.wall_clock_state()?;

if let Some(event_handler) = self.event_handler.as_ref() {
if event_handler.has_attester_slashing_subscribers() {
event_handler.register(EventKind::AttesterSlashing(Box::new(
attester_slashing.clone(),
)));
}
}

Ok(self.observed_attester_slashings.lock().verify_and_observe(
attester_slashing,
&wall_clock_state,
Expand Down
2 changes: 0 additions & 2 deletions beacon_node/http_api/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5309,8 +5309,6 @@ impl ApiTester {
.await;
assert_eq!(reorg_event.as_slice(), &[expected_reorg]);

let validator_indices = self.interesting_validator_indices();

// Test attester slashing event
let mut attester_slashing_event_future = self
.client
Expand Down

0 comments on commit a3e42d3

Please sign in to comment.