Retry more for a new blockhash

This commit is contained in:
Michael Vines
2019-03-22 10:36:28 -07:00
committed by Grimes
parent bdee3a25f2
commit 3285cf8047

View File

@ -788,7 +788,7 @@ fn get_next_blockhash(
rpc_client: &RpcClient, rpc_client: &RpcClient,
previous_blockhash: &Hash, previous_blockhash: &Hash,
) -> Result<Hash, Box<dyn error::Error>> { ) -> Result<Hash, Box<dyn error::Error>> {
let mut next_blockhash_retries = 3; let mut next_blockhash_retries = 10;
loop { loop {
let next_blockhash = get_recent_blockhash(rpc_client)?; let next_blockhash = get_recent_blockhash(rpc_client)?;
if cfg!(not(test)) { if cfg!(not(test)) {