Fix issues with bench-tps (#4005)

This commit is contained in:
Sagar Dhawan
2019-04-27 08:39:29 -07:00
committed by GitHub
parent 4a5837a286
commit 18e398131d
5 changed files with 45 additions and 16 deletions

View File

@ -115,10 +115,6 @@ impl ThinClient {
))
}
pub fn get_new_blockhash(&self, blockhash: &Hash) -> io::Result<Hash> {
self.rpc_client.get_new_blockhash(blockhash)
}
pub fn poll_balance_with_timeout(
&self,
pubkey: &Pubkey,
@ -238,6 +234,11 @@ impl SyncClient for ThinClient {
fn poll_for_signature(&self, signature: &Signature) -> TransportResult<()> {
Ok(self.rpc_client.poll_for_signature(signature)?)
}
fn get_new_blockhash(&self, blockhash: &Hash) -> TransportResult<Hash> {
let new_blockhash = self.rpc_client.get_new_blockhash(blockhash)?;
Ok(new_blockhash)
}
}
impl AsyncClient for ThinClient {