Add option to wait for a specific epoch length to bench-tps (#10083)

This commit is contained in:
sakridge
2020-05-20 16:42:46 -07:00
committed by GitHub
parent 417f0e41fa
commit ce17de7d25
13 changed files with 256 additions and 128 deletions

View File

@ -11,6 +11,7 @@ use crate::{
account::Account,
clock::Slot,
commitment_config::CommitmentConfig,
epoch_info::EpochInfo,
fee_calculator::{FeeCalculator, FeeRateGovernor},
hash::Hash,
instruction::Instruction,
@ -106,6 +107,8 @@ pub trait SyncClient {
commitment_config: CommitmentConfig,
) -> Result<u64>;
fn get_epoch_info(&self) -> Result<EpochInfo>;
/// Poll until the signature has been confirmed by at least `min_confirmed_blocks`
fn poll_for_signature_confirmation(
&self,