pub fn submit_and_wait_txn_committed(
        &mut self,
        txn_reqs: &[SubmitTransactionRequest],
    ) -> (usize, usize, u128, u128) {
        let txn_req_chunks = divide_items(txn_reqs, self.clients.len());
        let init_storage_cntr = self.get_committed_txns_counter();
        let (num_txns_accepted, submit_duration_ms) = self.submit_txns(txn_req_chunks);
        let (num_committed, wait_duration_ms) =
            self.wait_txns(init_storage_cntr, num_txns_accepted);
        (
            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],
    ) -> (usize, usize, u128, u128) {
        let txn_req_chunks = divide_items(txn_reqs, self.clients.len());
        let init_storage_cntr = self.get_committed_txns_counter();
        let (num_txns_accepted, submit_duration_ms) = self.submit_txns(txn_req_chunks);
        let (num_committed, wait_duration_ms) =
            self.wait_txns(init_storage_cntr, num_txns_accepted);
        (
            num_txns_accepted,
            num_committed,
            submit_duration_ms,
            wait_duration_ms,
        )
    }
pub fn submit_and_wait_txn_committed ( & mut self , txn_reqs : & [ SubmitTransactionRequest ] , ) -> ( usize , usize , u128 , u128 ) { let txn_req_chunks = divide_items ( txn_reqs , self . clients . len ( ) ) ; let init_storage_cntr = self . get_committed_txns_counter ( ) ; let ( num_txns_accepted , submit_duration_ms ) = self . submit_txns ( txn_req_chunks ) ; let ( num_committed , wait_duration_ms ) = self . wait_txns ( init_storage_cntr , num_txns_accepted ) ; ( 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]