Add bls in event

This commit is contained in:
Tan Chee Keong
2024-05-22 11:54:47 +08:00
parent fa1aebe4ce
commit ecd82f302c

View File

@@ -213,6 +213,10 @@ impl<E: EthSpec> ServerSentEventHandler<E> {
self.proposer_slashing_tx.subscribe()
}
pub fn subscribe_bls_to_execution_change(&self) -> Receiver<EventKind<E>> {
self.bls_to_execution_change_tx.subscribe()
}
pub fn has_attestation_subscribers(&self) -> bool {
self.attestation_tx.receiver_count() > 0
}
@@ -264,4 +268,8 @@ impl<E: EthSpec> ServerSentEventHandler<E> {
pub fn has_attester_slashing_subscribers(&self) -> bool {
self.attester_slashing_tx.receiver_count() > 0
}
pub fn has_bls_to_execution_change_subscribers(&self) -> bool {
self.bls_to_execution_change_tx.receiver_count() > 0
}
}