mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: refactor and integrate local engine into EngineNodeLauncher (#11703)
This commit is contained in:
@ -504,7 +504,7 @@ where
|
||||
} else if let Some(latest_block) = this.state.latest_block {
|
||||
let now =
|
||||
SystemTime::now().duration_since(UNIX_EPOCH).unwrap_or_default().as_secs();
|
||||
if now - this.state.latest_block_time.unwrap_or(0) > 60 {
|
||||
if now.saturating_sub(this.state.latest_block_time.unwrap_or(0)) > 60 {
|
||||
// Once we start receiving consensus nodes, don't emit status unless stalled for
|
||||
// 1 minute
|
||||
info!(
|
||||
|
||||
Reference in New Issue
Block a user