pub struct ConsensusNotifier { /* private fields */ }
Expand description
The consensus component responsible for sending notifications and requests to state sync.
Note: When a ConsensusNotifier instance is created, state sync must take and listen to the receiver in the corresponding ConsensusNotificationListener.
Trait Implementations§
source§impl ConsensusNotificationSender for ConsensusNotifier
impl ConsensusNotificationSender for ConsensusNotifier
source§fn notify_new_commit<'life0, 'async_trait>(
&'life0 self,
transactions: Vec<Transaction>,
reconfiguration_events: Vec<ContractEvent>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn notify_new_commit<'life0, 'async_trait>( &'life0 self, transactions: Vec<Transaction>, reconfiguration_events: Vec<ContractEvent> ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Notify state sync of newly committed transactions and reconfiguration events.