Skip to content

Commit

Permalink
fix sse event failure
Browse files Browse the repository at this point in the history
  • Loading branch information
eserilev committed Jan 15, 2025
1 parent 54844b3 commit f7a0b37
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions beacon_node/beacon_chain/src/beacon_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2049,6 +2049,17 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
}
}
}

if event_handler.has_attestation_subscribers() {
let current_fork = self
.spec
.fork_name_at_slot::<T::EthSpec>(v.attestation().data().slot);
if !current_fork.electra_enabled() {
event_handler.register(EventKind::Attestation(Box::new(
v.attestation().clone_as_attestation(),
)));
}
}
}
metrics::inc_counter(&metrics::UNAGGREGATED_ATTESTATION_PROCESSING_SUCCESSES);
},
Expand Down

0 comments on commit f7a0b37

Please sign in to comment.