You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// connectivity reports should not trigger if there is no block production
299
+
let now = UNIX_EPOCH.elapsed().expect("Time not available").as_secs();
300
+
// this should hold true.
301
+
if now >= block_time {
302
+
let elapsed_since_last_block = now - block_time;
303
+
// todo: this is max blocktime (heartbeat) x 2, better read the maximum blocktime.
304
+
// on phoenix protocol triggers, this would also skip the sending of disconnectivity reports.
305
+
if elapsed_since_last_block > 10*60{
306
+
info!(target:"engine","skipping early-epoch-end: now {now} ; block_time {block_time}: Block WAS created in the future ?!?! :-x. not sending early epoch end reports.");
307
+
return;
308
+
}
309
+
}else{
310
+
// if the newest block is from the future, something very problematic happened.
311
+
// the system clock could be wrong.
312
+
// or the blockchain really produces blocks from the future.
313
+
// we are just not sending reports in this case.
314
+
315
+
error!(target:"engine","early-epoch-end: now {now} ; block_time {block_time}: Block WAS created in the future ?!?! :-x. not sending early epoch end reports.");
0 commit comments