sui_core::consensus_adapter

Trait CheckConnection

Source
pub trait CheckConnection: Send + Sync {
    // Required methods
    fn check_connection(
        &self,
        ourself: &AuthorityName,
        authority: &AuthorityName,
    ) -> Option<ConnectionStatus>;
    fn update_mapping_for_epoch(
        &self,
        authority_names_to_peer_ids: HashMap<AuthorityName, PeerId>,
    );
}

Required Methods§

Source

fn check_connection( &self, ourself: &AuthorityName, authority: &AuthorityName, ) -> Option<ConnectionStatus>

Source

fn update_mapping_for_epoch( &self, authority_names_to_peer_ids: HashMap<AuthorityName, PeerId>, )

Implementors§