pub fn pending_jobs_count(&self) -> QueryResult<u32> {
        self.0.conn().transaction(|| {
            let query = "\
            SELECT COUNT(*) as integer_value FROM operations o \
               WHERE action_type = 'COMMIT' \
                   AND block_number > \
                       (SELECT COALESCE(max(block_number),0) FROM operations WHERE action_type = 'VERIFY') \
                   AND NOT EXISTS \
                       (SELECT * FROM proofs WHERE block_number = o.block_number);";

            let block_without_proofs = diesel::sql_query(query).get_result::<IntegerNumber>(self.0.conn())?;
            Ok(block_without_proofs.integer_value as u32)
        })
    }
/// Returns the amount of blocks which await for proof (committed but not verified)
Returns the amount of blocks which await for proof (committed but not verified)
Returns the amount of blocks which await for proof ( committed but not verified )
pub fn pending_jobs_count(&self) -> QueryResult<u32> {
        self.0.conn().transaction(|| {
            let query = "\
            SELECT COUNT(*) as integer_value FROM operations o \
               WHERE action_type = 'COMMIT' \
                   AND block_number > \
                       (SELECT COALESCE(max(block_number),0) FROM operations WHERE action_type = 'VERIFY') \
                   AND NOT EXISTS \
                       (SELECT * FROM proofs WHERE block_number = o.block_number);";
            let block_without_proofs = diesel::sql_query(query).get_result::<IntegerNumber>(self.0.conn())?;
            Ok(block_without_proofs.integer_value as u32)
        })
    }
pub fn pending_jobs_count ( & self ) -> QueryResult < u32 > { self . 0 . conn ( ) . transaction ( | | { let query = " \
 \
 \
 \
 \
 \
 " ; let block_without_proofs = diesel :: sql_query ( query ) . get_result :: < IntegerNumber > ( self . 0 . conn ( ) ) ? ; Ok ( block_without_proofs . integer_value as u32 ) } ) }
Returns the amount of blocks which await for proof (committed but not verified)
Returns the amount of blocks which await for proof ( committed but not verified )
&self