mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-14 18:32:42 +00:00
Add bls in event
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user