pub fn save_rollup_ops(connection_pool: &ConnectionPool, blocks: &[RollupOpsBlock]) {
    let storage = connection_pool.access_storage().expect("db failed");
    let mut ops: Vec<(u32, &FranklinOp, u32)> = vec![];

    for block in blocks {
        for op in &block.ops {
            ops.push((block.block_num, op, block.fee_account));
        }
    }

    storage
        .data_restore_schema()
        .save_rollup_ops(ops.as_slice())
        .expect("Cant update rollup operations");
}
/// Saves Rollup operations blocks in storage
///
/// # Arguments
///
/// * `connection_pool` - Database Connection Pool
/// * `blocks` - Rollup operations blocks
///
Saves Rollup operations blocks in storage
Saves Rollup operations blocks in storage
pub fn save_rollup_ops(connection_pool: &ConnectionPool, blocks: &[RollupOpsBlock]) {
    let storage = connection_pool.access_storage().expect("db failed");
    let mut ops: Vec<(u32, &FranklinOp, u32)> = vec![];
    for block in blocks {
        for op in &block.ops {
            ops.push((block.block_num, op, block.fee_account));
        }
    }
    storage
        .data_restore_schema()
        .save_rollup_ops(ops.as_slice())
        .expect("Cant update rollup operations");
}
pub fn save_rollup_ops ( connection_pool : & ConnectionPool , blocks : & [ RollupOpsBlock ] ) { let storage = connection_pool . access_storage ( ) . expect ( " " ) ; let mut ops : Vec < ( u32 , & FranklinOp , u32 ) > = vec ! [ ] ; for block in blocks { for op in & block . ops { ops . push ( ( block . block_num , op , block . fee_account ) ) ; } } storage . data_restore_schema ( ) . save_rollup_ops ( ops . as_slice ( ) ) . expect ( " " ) ; }
Saves Rollup operations blocks in storage
Saves Rollup operations blocks in storage
connection_pool
&ConnectionPool
blocks
&[RollupOpsBlock]