/// Starts the transcript generation sequence by issuing the
/// dealing for the transcript. The requests for new transcripts
/// come from the latest summary block
Starts the transcript generation sequence by issuing the
dealing for the transcript. The requests for new transcripts
come from the latest summary block
Starts the transcript generation sequence by issuing the dealing for the transcript . The requests for new transcripts come from the latest summary block
fn send_dealings(
        &self,
        ecdsa_pool: &dyn EcdsaPool,
        block_reader: &dyn EcdsaBlockReader,
    ) -> EcdsaChangeSet {
        block_reader
            .requested_transcripts()
            .filter(|transcript_params| {
                // Issue a dealing if we are in the dealer list and we haven't
                //already issued a dealing for this transcript
                transcript_params.dealers().position(self.node_id).is_some()
                    && !self.has_dealer_issued_dealing(
                        ecdsa_pool,
                        &transcript_params.transcript_id(),
                        &self.node_id,
                    )
            })
            .map(|transcript_params| self.crypto_create_dealing(block_reader, transcript_params))
            .flatten()
            .collect()
    }
fn send_dealings ( & self , ecdsa_pool : & dyn EcdsaPool , block_reader : & dyn EcdsaBlockReader , ) -> EcdsaChangeSet { block_reader . requested_transcripts ( ) . filter ( | transcript_params | { // Issue a dealing if we are in the dealer list and we haven't //already issued a dealing for this transcript transcript_params . dealers ( ) . position ( self . node_id ) . is_some ( ) && ! self . has_dealer_issued_dealing ( ecdsa_pool , & transcript_params . transcript_id ( ) , & self . node_id , ) } ) . map ( | transcript_params | self . crypto_create_dealing ( block_reader , transcript_params ) ) . flatten ( ) . collect ( ) }
Starts the transcript generation sequence by issuing the
dealing for the transcript.
Starts the transcript generation sequence by issuing the dealing for the transcript .
&self
ecdsa_pool
&dyn EcdsaPool
block_reader
&dyn EcdsaBlockReader