pub fn update_eth_stats(connection_pool: &ConnectionPool) {
    let storage = connection_pool.access_storage().expect("db failed");

    let last_committed_block = storage
        .chain()
        .block_schema()
        .get_last_committed_block()
        .expect("Can't get the last committed block");

    let last_verified_block = storage
        .chain()
        .block_schema()
        .get_last_verified_block()
        .expect("Can't get the last verified block");

    storage
        .data_restore_schema()
        .initialize_eth_stats(last_committed_block, last_verified_block)
        .expect("Can't update the eth_stats table")
}
/// Updates the `eth_stats` table with the currently last available committed/verified blocks
/// data for `eth_sender` module to operate correctly.
Updates the `eth_stats` table with the currently last available committed/verified blocks
data for `eth_sender` module to operate correctly.
Updates the ` eth_stats ` table with the currently last available committed / verified blocks data for ` eth_sender ` module to operate correctly .
pub fn update_eth_stats(connection_pool: &ConnectionPool) {
    let storage = connection_pool.access_storage().expect("db failed");
    let last_committed_block = storage
        .chain()
        .block_schema()
        .get_last_committed_block()
        .expect("Can't get the last committed block");
    let last_verified_block = storage
        .chain()
        .block_schema()
        .get_last_verified_block()
        .expect("Can't get the last verified block");
    storage
        .data_restore_schema()
        .initialize_eth_stats(last_committed_block, last_verified_block)
        .expect("Can't update the eth_stats table")
}
pub fn update_eth_stats ( connection_pool : & ConnectionPool ) { let storage = connection_pool . access_storage ( ) . expect ( " " ) ; let last_committed_block = storage . chain ( ) . block_schema ( ) . get_last_committed_block ( ) . expect ( " " ) ; let last_verified_block = storage . chain ( ) . block_schema ( ) . get_last_verified_block ( ) . expect ( " " ) ; storage . data_restore_schema ( ) . initialize_eth_stats ( last_committed_block , last_verified_block ) . expect ( " " ) }
Updates the `eth_stats` table with the currently last available committed/verified blocks
data for `eth_sender` module to operate correctly.
Updates the ` eth_stats ` table with the currently last available committed / verified blocks data for ` eth_sender ` module to operate correctly .
connection_pool
&ConnectionPool