/// Returns `true` if batches can still be scheduled; returns `false` otherwise.
///
/// Batches can be scheduled for the candidate block when both of these conditions are true:
/// * The maximum number of batches that a block can contain have not already been scheduled
/// * The scheduler has not been finalized
Returns `true` if batches can still be scheduled; returns `false` otherwise.
Batches can be scheduled for the candidate block when both of these conditions are true:
The maximum number of batches that a block can contain have not already been scheduled
The scheduler has not been finalized
Returns ` true ` if batches can still be scheduled ; returns ` false ` otherwise . Batches can be scheduled for the candidate block when both of these conditions are true : The maximum number of batches that a block can contain have not already been scheduled The scheduler has not been finalized
pub fn can_schedule_batch(&self) -> bool {
        let is_full = self
            .max_batches_per_block
            .map(|max| self.scheduled_batch_ids.len() >= max)
            .unwrap_or(false);
        // If a summary has been computed for the candidate block, the scheduler was finalized
        let is_finalized = self.summary.is_some();
        !is_full && !is_finalized
    }
pub fn can_schedule_batch ( & self ) -> bool { let is_full = self . max_batches_per_block . map ( | max | self . scheduled_batch_ids . len ( ) >= max ) . unwrap_or ( false ) ; // If a summary has been computed for the candidate block, the scheduler was finalized let is_finalized = self . summary . is_some ( ) ; ! is_full && ! is_finalized }
Returns `true` if batches can still be scheduled; returns `false` otherwise.
Returns ` true ` if batches can still be scheduled ; returns ` false ` otherwise .
&self