Add BenchTpsClient trait (#24208)

* Add BenchTpsClient

* Impl BenchTpsClient for used clients

* Use BenchTpsClient in do_bench

* Update integration test to use faucet via rpc

* Support keypairs from file that are not prefunded

* Remove old perf-utils
This commit is contained in:
Tyera Eulberg
2022-04-11 15:45:40 -04:00
committed by GitHub
parent c0019edf00
commit 3871c85fd7
13 changed files with 395 additions and 169 deletions

View File

@@ -171,7 +171,7 @@ impl ThinClient {
&self.tpu_addrs[self.optimizer.best()]
}
fn rpc_client(&self) -> &RpcClient {
pub fn rpc_client(&self) -> &RpcClient {
&self.rpc_clients[self.optimizer.best()]
}