Browse Source

Warn if server is behind

checkpoints
Aditya Kulkarni 5 years ago
parent
commit
7016280d1c
  1. 6
      src/lightclient.rs

6
src/lightclient.rs

@ -569,6 +569,12 @@ impl LightClient {
});
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);
// Get the end height to scan to.

Loading…
Cancel
Save