/// Return true if this node has already published a notarization share
/// for the given block proposal. Return false otherwise.
Return true if this node has already published a notarization share
for the given block proposal. Return false otherwise.
Return true if this node has already published a notarization share for the given block proposal . Return false otherwise .
fn is_proposal_already_notarized_by_me<'a>(
        &self,
        pool: &PoolReader<'_>,
        proposal: &'a BlockProposal,
    ) -> bool {
        let height = proposal.height();
        pool.get_notarization_shares(height)
            .filter(|s| s.signature.signer == self.replica_config.node_id)
            .any(|s| s.block_hash() == proposal.block_hash())
    }
fn is_proposal_already_notarized_by_me < ' a > ( & self , pool : & PoolReader < ' _ > , proposal : & ' a BlockProposal , ) -> bool { let height = proposal . height ( ) ; pool . get_notarization_shares ( height ) . filter ( | s | s . signature . signer == self . replica_config . node_id ) . any ( | s | s . block_hash ( ) == proposal . block_hash ( ) ) }
Return true if this node has already published a notarization share
for the given block proposal.
Return true if this node has already published a notarization share for the given block proposal .
&self
pool
&PoolReader<'_>
proposal
&'a BlockProposal