This commit is contained in:
Justin Starry 2019-12-19 13:19:18 -05:00 committed by Michael Vines
parent a096ade345
commit 54f16ca2bf
1 changed files with 5 additions and 5 deletions

View File

@ -416,11 +416,11 @@ fn poll_blockhash<T: Client>(
if blockhash_last_updated.elapsed().as_secs() > 120 { if blockhash_last_updated.elapsed().as_secs() > 120 {
eprintln!("Blockhash is stuck"); eprintln!("Blockhash is stuck");
exit(1) exit(1)
} else if blockhash_last_updated.elapsed().as_secs() > 30 { } else if blockhash_last_updated.elapsed().as_secs() > 30
if last_error_log.elapsed().as_secs() >= 1 { && last_error_log.elapsed().as_secs() >= 1
last_error_log = Instant::now(); {
error!("Blockhash is not updating"); last_error_log = Instant::now();
} error!("Blockhash is not updating");
} }
false false
} }