pub(crate) fn resolve_validity(
        &mut self,
        proposed_block: &ProposedBlock<ClContext>,
        valid: bool,
    ) -> bool {
        if valid {
            if let Some(vs) = self.validation_states.get_mut(proposed_block) {
                if !vs.missing_evidence.is_empty() {
                    vs.validated = true;
                    return false;
                }
            }
        }
        self.validation_states.remove(proposed_block).is_some()
    }
/// Marks the block payload as valid or invalid. Returns `false` if the block was not present
/// or is still missing evidence. Otherwise it returns `true`: The block can now be processed
/// by the consensus protocol.
Marks the block payload as valid or invalid. Returns `false` if the block was not present
or is still missing evidence. Otherwise it returns `true`: The block can now be processed
by the consensus protocol.
Marks the block payload as valid or invalid . Returns ` false ` if the block was not present or is still missing evidence . Otherwise it returns ` true ` : The block can now be processed by the consensus protocol .
pub(crate) fn resolve_validity(
        &mut self,
        proposed_block: &ProposedBlock<ClContext>,
        valid: bool,
    ) -> bool {
        if valid {
            if let Some(vs) = self.validation_states.get_mut(proposed_block) {
                if !vs.missing_evidence.is_empty() {
                    vs.validated = true;
                    return false;
                }
            }
        }
        self.validation_states.remove(proposed_block).is_some()
    }
pub ( crate ) fn resolve_validity ( & mut self , proposed_block : & ProposedBlock < ClContext > , valid : bool , ) -> bool { if valid { if let Some ( vs ) = self . validation_states . get_mut ( proposed_block ) { if ! vs . missing_evidence . is_empty ( ) { vs . validated = true ; return false ; } } } self . validation_states . remove ( proposed_block ) . is_some ( ) }
Marks the block payload as valid or invalid.
Marks the block payload as valid or invalid .
&mut self
proposed_block
&ProposedBlock<ClContext>
valid
bool
&mut self
proposed_block
&ProposedBlock<ClContext>
valid
bool