Retry more for a new blockhash

This commit is contained in:
Michael Vines 2019-03-22 10:36:18 -07:00
parent 38fdbbba3f
commit a28f7db950
1 changed files with 2 additions and 2 deletions

View File

@ -327,7 +327,7 @@ impl RpcClient {
}
pub fn get_new_blockhash(&self, blockhash: &Hash) -> io::Result<Hash> {
let mut num_retries = 5;
let mut num_retries = 10;
while num_retries > 0 {
if let Ok(new_blockhash) = self.get_recent_blockhash() {
if new_blockhash != *blockhash {
@ -344,7 +344,7 @@ impl RpcClient {
}
Err(io::Error::new(
io::ErrorKind::Other,
"Unable to get next blockhash, too many retries",
"Unable to get new blockhash, too many retries",
))
}