pub fn mint_accounts(
        &mut self,
        mint_requests: &[SubmitTransactionRequest],
        faucet_account: &mut AccountData,
    ) {
        // Disable client staggering for mint operations.
        let stagger_range_ms = self.stagger_range_ms;
        self.stagger_range_ms = 1;
        let (num_accepted, num_committed, _, _) =
            self.submit_and_wait_txn_committed(mint_requests, std::slice::from_mut(faucet_account));
        self.stagger_range_ms = stagger_range_ms;
        // We stop immediately if any minting fails.
        if num_accepted != mint_requests.len() || num_accepted - num_committed > 0 {
            panic!(
                "{} of {} mint transaction(s) accepted, and {} failed",
                num_accepted,
                mint_requests.len(),
                num_accepted - num_committed,
            )
        }
    }
/// Minting given accounts using self's AC client(s).
/// Mint TXNs must be 100% successful in order to continue benchmark.
/// Therefore mint_accounts() will panic when any mint TXN is not accepted or fails.
/// Known issue: Minting opereations from two different Benchmarker instances
/// will fail because they are sharing the same faucet account.
Minting given accounts using self's AC client(s).
Mint TXNs must be 100% successful in order to continue benchmark.
Therefore mint_accounts() will panic when any mint TXN is not accepted or fails.
Known issue: Minting opereations from two different Benchmarker instances
will fail because they are sharing the same faucet account.
Minting given accounts using self ' s AC client ( s ) . Mint TXNs must be 100% successful in order to continue benchmark . Therefore mint_accounts () will panic when any mint TXN is not accepted or fails . Known issue : Minting opereations from two different Benchmarker instances will fail because they are sharing the same faucet account .
pub fn mint_accounts(
        &mut self,
        mint_requests: &[SubmitTransactionRequest],
        faucet_account: &mut AccountData,
    ) {
        // Disable client staggering for mint operations.
        let stagger_range_ms = self.stagger_range_ms;
        self.stagger_range_ms = 1;
        let (num_accepted, num_committed, _, _) =
            self.submit_and_wait_txn_committed(mint_requests, std::slice::from_mut(faucet_account));
        self.stagger_range_ms = stagger_range_ms;
        // We stop immediately if any minting fails.
        if num_accepted != mint_requests.len() || num_accepted - num_committed > 0 {
            panic!(
                "{} of {} mint transaction(s) accepted, and {} failed",
                num_accepted,
                mint_requests.len(),
                num_accepted - num_committed,
            )
        }
    }
pub fn mint_accounts ( & mut self , mint_requests : & [ SubmitTransactionRequest ] , faucet_account : & mut AccountData , ) { // Disable client staggering for mint operations. let stagger_range_ms = self . stagger_range_ms ; self . stagger_range_ms = 1 ; let ( num_accepted , num_committed , _ , _ ) = self . submit_and_wait_txn_committed ( mint_requests , std :: slice :: from_mut ( faucet_account ) ) ; self . stagger_range_ms = stagger_range_ms ; // We stop immediately if any minting fails. if num_accepted != mint_requests . len ( ) || num_accepted - num_committed > 0 { panic ! ( " " num_accepted mint_requests len ( ) num_accepted num_committed ) } }
Minting given accounts using self's AC client(s).
Minting given accounts using self ' s AC client ( s ) .
&mut self
mint_requests
&[SubmitTransactionRequest]
faucet_account
&mut AccountData
&mut self
mint_requests
&[SubmitTransactionRequest]
faucet_account
&mut AccountData