pub fn save_genesis_tree_state(
    connection_pool: &ConnectionPool,
    genesis_acc_update: AccountUpdate,
) {
    let storage = connection_pool.access_storage().expect("db failed");
    let (_last_committed, mut _accounts) = storage
        .chain()
        .state_schema()
        .load_committed_state(None)
        .expect("Cant load comitted state");
    assert!(
        _last_committed == 0 && _accounts.is_empty(),
        "db should be empty"
    );
    storage
        .data_restore_schema()
        .save_genesis_state(genesis_acc_update)
        .expect("Cant update genesis state");
}
/// Saves genesis account state in storage
///
/// # Arguments
///
/// * `connection_pool` - Database connection pool
/// * `genesis_acc_update` - Genesis account update
///
Saves genesis account state in storage
Saves genesis account state in storage
pub fn save_genesis_tree_state(
    connection_pool: &ConnectionPool,
    genesis_acc_update: AccountUpdate,
) {
    let storage = connection_pool.access_storage().expect("db failed");
    let (_last_committed, mut _accounts) = storage
        .chain()
        .state_schema()
        .load_committed_state(None)
        .expect("Cant load comitted state");
    assert!(
        _last_committed == 0 && _accounts.is_empty(),
        "db should be empty"
    );
    storage
        .data_restore_schema()
        .save_genesis_state(genesis_acc_update)
        .expect("Cant update genesis state");
}
pub fn save_genesis_tree_state ( connection_pool : & ConnectionPool , genesis_acc_update : AccountUpdate , ) { let storage = connection_pool . access_storage ( ) . expect ( " " ) ; let ( _last_committed , mut _accounts ) = storage . chain ( ) . state_schema ( ) . load_committed_state ( None ) . expect ( " " ) ; assert ! ( _last_committed 0 _accounts is_empty ( ) " " ) ; storage . data_restore_schema ( ) . save_genesis_state ( genesis_acc_update ) . expect ( " " ) ; }
Saves genesis account state in storage
Saves genesis account state in storage
connection_pool
&ConnectionPool
genesis_acc_update
AccountUpdate