Rollback jsonrpc SendTransaction pool for signature; ignore flaky tests

This commit is contained in:
Tyera Eulberg
2018-09-26 11:17:45 -06:00
committed by Grimes
parent a5b28349ed
commit 113c8b5880
2 changed files with 6 additions and 16 deletions

View File

@@ -194,21 +194,7 @@ impl RpcSol for RpcSolImpl {
debug!("send_transaction: send_to error: {:?}", err);
Error::internal_error()
})?;
let now = Instant::now();
let mut signature_status;
loop {
signature_status = meta
.request_processor
.get_signature_status(tx.signature)
.map_err(|_| Error::internal_error())?;
if signature_status {
return Ok(bs58::encode(tx.signature).into_string());
} else if now.elapsed().as_secs() > 5 {
return Err(Error::internal_error());
}
sleep(Duration::from_millis(100));
}
Ok(bs58::encode(tx.signature).into_string())
}
}
#[derive(Clone)]