/// Attempt to construct `Finalization`s
Attempt to construct `Finalization`s
Attempt to construct ` Finalization ` s
fn aggregate_finalization_shares(&self, pool: &PoolReader<'_>) -> Vec<ConsensusMessage> {
        let shares = pool.get_finalization_shares(
            pool.get_finalized_height().increment(),
            pool.get_notarized_height(),
        );
        let state_reader = pool.as_cache();
        to_messages(utils::aggregate(
            &self.log,
            self.membership.as_ref(),
            self.crypto.as_aggregate(),
            Box::new(|content: &FinalizationContent| {
                utils::registry_version_at_height(state_reader, content.height())
            }),
            shares,
        ))
    }
fn aggregate_finalization_shares ( & self , pool : & PoolReader < ' _ > ) -> Vec < ConsensusMessage > { let shares = pool . get_finalization_shares ( pool . get_finalized_height ( ) . increment ( ) , pool . get_notarized_height ( ) , ) ; let state_reader = pool . as_cache ( ) ; to_messages ( utils :: aggregate ( & self . log , self . membership . as_ref ( ) , self . crypto . as_aggregate ( ) , Box :: new ( | content : & FinalizationContent | { utils :: registry_version_at_height ( state_reader , content . height ( ) ) } ) , shares , ) ) }
Attempt to construct `Finalization`s
Attempt to construct ` Finalization ` s
&self
pool
&PoolReader<'_>