pub fn load_committed_state(&self, block: Option<u32>) -> QueryResult<(u32, AccountMap)> {
        self.0.conn().transaction(|| {
            let (verif_block, mut accounts) = self.load_verified_state()?;
            log::debug!(
                "Verified state block: {}, accounts: {:#?}",
                verif_block,
                accounts
            );

            // Fetch updates from blocks: verif_block +/- 1, ... , block
            if let Some((block, state_diff)) = self.load_state_diff(verif_block, block)? {
                log::debug!("Loaded state diff: {:#?}", state_diff);
                apply_updates(&mut accounts, state_diff);
                Ok((block, accounts))
            } else {
                Ok((verif_block, accounts))
            }
        })
    }
/// Loads the committed (not necessarily 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 committed (not necessarily 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 committed ( not necessarily 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_committed_state(&self, block: Option<u32>) -> QueryResult<(u32, AccountMap)> {
        self.0.conn().transaction(|| {
            let (verif_block, mut accounts) = self.load_verified_state()?;
            log::debug!(
                "Verified state block: {}, accounts: {:#?}",
                verif_block,
                accounts
            );
            // Fetch updates from blocks: verif_block +/- 1, ... , block
            if let Some((block, state_diff)) = self.load_state_diff(verif_block, block)? {
                log::debug!("Loaded state diff: {:#?}", state_diff);
                apply_updates(&mut accounts, state_diff);
                Ok((block, accounts))
            } else {
                Ok((verif_block, accounts))
            }
        })
    }
pub fn load_committed_state ( & self , block : Option < u32 > ) -> QueryResult < ( u32 , AccountMap ) > { self . 0 . conn ( ) . transaction ( | | { let ( verif_block , mut accounts ) = self . load_verified_state ( ) ? ; log :: debug ! ( " " verif_block accounts ) ; // Fetch updates from blocks: verif_block +/- 1, ... , block if let Some ( ( block , state_diff ) ) = self . load_state_diff ( verif_block , block ) ? { log :: debug ! ( " " state_diff ) ; apply_updates ( & mut accounts , state_diff ) ; Ok ( ( block , accounts ) ) } else { Ok ( ( verif_block , accounts ) ) } } ) }
Loads the committed (not necessarily verified) account map state along
with a block number to which this state applies.
Loads the committed ( not necessarily verified ) account map state along with a block number to which this state applies .
&self
block
Option<u32>