solana_program_test

Trait ProgramTestBanksClientExt

Source
pub trait ProgramTestBanksClientExt {
    // Required method
    fn get_new_latest_blockhash<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        blockhash: &'life1 Hash,
    ) -> Pin<Box<dyn Future<Output = Result<Hash>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn get_new_latest_blockhash<'life0, 'life1, 'async_trait>( &'life0 mut self, blockhash: &'life1 Hash, ) -> Pin<Box<dyn Future<Output = Result<Hash>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get a new latest blockhash, similar in spirit to RpcClient::get_latest_blockhash()

Implementors§