pub fn gen_repeated_txn_load<T: LoadGenerator + ?Sized>(
    txn_generator: &T,
    accounts: &mut [AccountData],
    num_rounds: u64,
) -> Vec<SubmitTransactionRequest> {
    let mut repeated_tx_reqs = vec![];
    for _ in 0..num_rounds {
        let tx_reqs = txn_generator.gen_signed_txn_request_load(accounts);
        repeated_tx_reqs.extend(tx_reqs.into_iter());
    }
    convert_load_to_txn_requests(repeated_tx_reqs)
}
/// Generate repeated TXNs from a type that implements LoadGenerator.
Generate repeated TXNs from a type that implements LoadGenerator.
Generate repeated TXNs from a type that implements LoadGenerator .
pub fn gen_repeated_txn_load<T: LoadGenerator + ?Sized>(
    txn_generator: &T,
    accounts: &mut [AccountData],
    num_rounds: u64,
) -> Vec<SubmitTransactionRequest> {
    let mut repeated_tx_reqs = vec![];
    for _ in 0..num_rounds {
        let tx_reqs = txn_generator.gen_signed_txn_request_load(accounts);
        repeated_tx_reqs.extend(tx_reqs.into_iter());
    }
    convert_load_to_txn_requests(repeated_tx_reqs)
}
pub fn gen_repeated_txn_load < T : LoadGenerator + ? Sized > ( txn_generator : & T , accounts : & mut [ AccountData ] , num_rounds : u64 , ) -> Vec < SubmitTransactionRequest > { let mut repeated_tx_reqs = vec ! [ ] ; for _ in 0 .. num_rounds { let tx_reqs = txn_generator . gen_signed_txn_request_load ( accounts ) ; repeated_tx_reqs . extend ( tx_reqs . into_iter ( ) ) ; } convert_load_to_txn_requests ( repeated_tx_reqs ) }
Generate repeated TXNs from a type that implements LoadGenerator.
Generate repeated TXNs from a type that implements LoadGenerator .
txn_generator
&T
accounts
&mut [AccountData]
num_rounds
u64
txn_generator
&T
accounts
&mut [AccountData]
num_rounds
u64