mirror of
https://github.com/Qortal/piratewallet-light-cli.git
synced 2025-02-12 02:05:47 +00:00
Warn if server is behind
This commit is contained in:
parent
0db5423927
commit
7016280d1c
@ -569,6 +569,12 @@ impl LightClient {
|
|||||||
});
|
});
|
||||||
let latest_block = latest_block_height.load(Ordering::SeqCst);
|
let latest_block = latest_block_height.load(Ordering::SeqCst);
|
||||||
|
|
||||||
|
if latest_block < last_scanned_height {
|
||||||
|
let w = format!("Server's latest block({}) is behind ours({})", latest_block, last_scanned_height);
|
||||||
|
warn!("{}", w);
|
||||||
|
return w;
|
||||||
|
}
|
||||||
|
|
||||||
info!("Latest block is {}", latest_block);
|
info!("Latest block is {}", latest_block);
|
||||||
|
|
||||||
// Get the end height to scan to.
|
// Get the end height to scan to.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user