pub fn process_transaction_with_commitment(
        &mut self,
        transaction: Transaction,
        commitment: CommitmentLevel,
    ) -> impl Future<Output = Result<(), BanksClientError>> + '_ {
        let mut ctx = context::current();
        ctx.deadline += Duration::from_secs(50);
        self.process_transaction_with_commitment_and_context(ctx, transaction, commitment)
            .map(|result| match result? {
                None => Err(BanksClientError::ClientError(
                    "invalid blockhash or fee-payer",
                )),
                Some(transaction_result) => Ok(transaction_result?),
            })
    }
/// Send a transaction and return after the transaction has been rejected or
/// reached the given level of commitment.
Send a transaction and return after the transaction has been rejected or
reached the given level of commitment.
Send a transaction and return after the transaction has been rejected or reached the given level of commitment .
pub fn process_transaction_with_commitment(
        &mut self,
        transaction: Transaction,
        commitment: CommitmentLevel,
    ) -> impl Future<Output = Result<(), BanksClientError>> + '_ {
        let mut ctx = context::current();
        ctx.deadline += Duration::from_secs(50);
        self.process_transaction_with_commitment_and_context(ctx, transaction, commitment)
            .map(|result| match result? {
                None => Err(BanksClientError::ClientError(
                    "invalid blockhash or fee-payer",
                )),
                Some(transaction_result) => Ok(transaction_result?),
            })
    }
pub fn process_transaction_with_commitment ( & mut self , transaction : Transaction , commitment : CommitmentLevel , ) -> impl Future < Output = Result < ( ) , BanksClientError > > + ' _ { let mut ctx = context :: current ( ) ; ctx . deadline += Duration :: from_secs ( 50 ) ; self . process_transaction_with_commitment_and_context ( ctx , transaction , commitment ) . map ( | result | match result ? { None => Err ( BanksClientError :: ClientError ( " " , ) ) , Some ( transaction_result ) => Ok ( transaction_result ? ) , } ) }
Send a transaction and return after the transaction has been rejected or
reached the given level of commitment.
Send a transaction and return after the transaction has been rejected or reached the given level of commitment .
&mut self
transaction
Transaction
commitment
CommitmentLevel