Trait melnode::staker::StakerNetProtocol

source ·
pub trait StakerNetProtocol {
    // Required methods
    fn get_diff<'life0, 'async_trait>(
        &'life0 self,
        nonce: u128,
        summary: HashMap<HashVal, HashVal>
    ) -> Pin<Box<dyn Future<Output = Vec<DiffMessage>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_sigs<'life0, 'async_trait>(
        &'life0 self,
        height: BlockHeight
    ) -> Pin<Box<dyn Future<Output = HashMap<Ed25519PK, Bytes>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn get_diff<'life0, 'async_trait>( &'life0 self, nonce: u128, summary: HashMap<HashVal, HashVal> ) -> Pin<Box<dyn Future<Output = Vec<DiffMessage>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Obtains a diff from the node, given a summary of the client’s state.

source

fn get_sigs<'life0, 'async_trait>( &'life0 self, height: BlockHeight ) -> Pin<Box<dyn Future<Output = HashMap<Ed25519PK, Bytes>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Obtains all known signatures for the given confirmed height. Used to assemble ConsensusProofs after streamlette finishes deciding.

Implementors§