@sakridge feedback
This commit is contained in:
parent
e82db6fc2f
commit
848fe51f3d
|
@ -24,6 +24,7 @@ use std::{
|
||||||
cmp,
|
cmp,
|
||||||
collections::VecDeque,
|
collections::VecDeque,
|
||||||
net::SocketAddr,
|
net::SocketAddr,
|
||||||
|
process::exit,
|
||||||
sync::{
|
sync::{
|
||||||
atomic::{AtomicBool, AtomicIsize, AtomicUsize, Ordering},
|
atomic::{AtomicBool, AtomicIsize, AtomicUsize, Ordering},
|
||||||
Arc, RwLock,
|
Arc, RwLock,
|
||||||
|
@ -411,7 +412,10 @@ fn poll_blockhash<T: Client>(
|
||||||
blockhash_last_updated = Instant::now();
|
blockhash_last_updated = Instant::now();
|
||||||
true
|
true
|
||||||
} else {
|
} else {
|
||||||
if blockhash_last_updated.elapsed().as_secs() > 30 {
|
if blockhash_last_updated.elapsed().as_secs() > 120 {
|
||||||
|
eprintln!("Blockhash is stuck");
|
||||||
|
exit(1)
|
||||||
|
} else if blockhash_last_updated.elapsed().as_secs() > 30 {
|
||||||
error!("Blockhash is not updating");
|
error!("Blockhash is not updating");
|
||||||
}
|
}
|
||||||
false
|
false
|
||||||
|
|
Loading…
Reference in New Issue