pub fn submit_and_wait_txn_committed(
        &mut self,
        txn_reqs: &[SubmitTransactionRequest],
        senders: &mut [AccountData],
    ) -> (usize, usize, u128, u128) {
        let (num_txns_accepted, submit_duration_ms) = self.submit_txns(txn_reqs);
        let (sync_sequence_numbers, wait_duration_ms) = self.wait_txns(senders);
        let (num_committed, _) = self.check_txn_results(senders, &sync_sequence_numbers);
        (
            num_txns_accepted,
            num_committed,
            submit_duration_ms,
            wait_duration_ms,
        )
    }
/// Implement the general way to submit TXNs to Libra and then
/// wait for all accepted ones to become committed.
/// Return (#accepted TXNs, #committed TXNs, submit duration, wait duration).
Implement the general way to submit TXNs to Libra and then
wait for all accepted ones to become committed.
Return (#accepted TXNs, #committed TXNs, submit duration, wait duration).
Implement the general way to submit TXNs to Libra and then wait for all accepted ones to become committed . Return ( #accepted TXNs #committed TXNs submit duration wait duration ) .
pub fn submit_and_wait_txn_committed(
        &mut self,
        txn_reqs: &[SubmitTransactionRequest],
        senders: &mut [AccountData],
    ) -> (usize, usize, u128, u128) {
        let (num_txns_accepted, submit_duration_ms) = self.submit_txns(txn_reqs);
        let (sync_sequence_numbers, wait_duration_ms) = self.wait_txns(senders);
        let (num_committed, _) = self.check_txn_results(senders, &sync_sequence_numbers);
        (
            num_txns_accepted,
            num_committed,
            submit_duration_ms,
            wait_duration_ms,
        )
    }
pub fn submit_and_wait_txn_committed ( & mut self , txn_reqs : & [ SubmitTransactionRequest ] , senders : & mut [ AccountData ] , ) -> ( usize , usize , u128 , u128 ) { let ( num_txns_accepted , submit_duration_ms ) = self . submit_txns ( txn_reqs ) ; let ( sync_sequence_numbers , wait_duration_ms ) = self . wait_txns ( senders ) ; let ( num_committed , _ ) = self . check_txn_results ( senders , & sync_sequence_numbers ) ; ( num_txns_accepted , num_committed , submit_duration_ms , wait_duration_ms , ) }
Implement the general way to submit TXNs to Libra and then
wait for all accepted ones to become committed.
Implement the general way to submit TXNs to Libra and then wait for all accepted ones to become committed .
&mut self
txn_reqs
&[SubmitTransactionRequest]
senders
&mut [AccountData]
&mut self
txn_reqs
&[SubmitTransactionRequest]
senders
&mut [AccountData]