pub fn load_verified_state(&self) -> QueryResult<(u32, AccountMap)> {
        self.0.conn().transaction(|| {
            let last_block = BlockSchema(self.0).get_last_verified_block()?;

            let accounts: Vec<StorageAccount> = accounts::table.load(self.0.conn())?;
            let balances: Vec<Vec<StorageBalance>> = StorageBalance::belonging_to(&accounts)
                .load(self.0.conn())?
                .grouped_by(&accounts);

            let account_map: AccountMap = accounts
                .into_iter()
                .zip(balances.into_iter())
                .map(|(stored_account, balances)| {
                    let (id, account) = restore_account(stored_account, balances);
                    (id, account)
                })
                .collect();

            Ok((last_block, account_map))
        })
    }
/// Loads the verified account map state along with a block number
/// to which this state applies.
/// If the provided block number is `None`, then the latest committed
/// state will be loaded.
Loads the verified account map state along with a block number
to which this state applies.
If the provided block number is `None`, then the latest committed
state will be loaded.
Loads the verified account map state along with a block number to which this state applies . If the provided block number is ` None ` then the latest committed state will be loaded .
pub fn load_verified_state(&self) -> QueryResult<(u32, AccountMap)> {
        self.0.conn().transaction(|| {
            let last_block = BlockSchema(self.0).get_last_verified_block()?;
            let accounts: Vec<StorageAccount> = accounts::table.load(self.0.conn())?;
            let balances: Vec<Vec<StorageBalance>> = StorageBalance::belonging_to(&accounts)
                .load(self.0.conn())?
                .grouped_by(&accounts);
            let account_map: AccountMap = accounts
                .into_iter()
                .zip(balances.into_iter())
                .map(|(stored_account, balances)| {
                    let (id, account) = restore_account(stored_account, balances);
                    (id, account)
                })
                .collect();
            Ok((last_block, account_map))
        })
    }
pub fn load_verified_state ( & self ) -> QueryResult < ( u32 , AccountMap ) > { self . 0 . conn ( ) . transaction ( | | { let last_block = BlockSchema ( self . 0 ) . get_last_verified_block ( ) ? ; let accounts : Vec < StorageAccount > = accounts :: table . load ( self . 0 . conn ( ) ) ? ; let balances : Vec < Vec < StorageBalance > > = StorageBalance :: belonging_to ( & accounts ) . load ( self . 0 . conn ( ) ) ? . grouped_by ( & accounts ) ; let account_map : AccountMap = accounts . into_iter ( ) . zip ( balances . into_iter ( ) ) . map ( | ( stored_account , balances ) | { let ( id , account ) = restore_account ( stored_account , balances ) ; ( id , account ) } ) . collect ( ) ; Ok ( ( last_block , account_map ) ) } ) }
Loads the verified account map state along with a block number
to which this state applies.
Loads the verified account map state along with a block number to which this state applies .
&self