pub trait ConsensusNotificationSender: Send + Sync {
// Required methods
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 sync_to_target<'life0, 'async_trait>(
&'life0 self,
target: LedgerInfoWithSignatures
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
The interface between state sync and consensus, allowing consensus to send synchronization notifications to state sync.
Required Methods§
sourcefn 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.