From 06f8d9bc65878380bb49d19a780481198475e6aa Mon Sep 17 00:00:00 2001 From: Cyrix126 Date: Sun, 6 Oct 2024 14:19:56 +0200 Subject: [PATCH] fix: set node process status to alive once syncronized --- src/helper/node.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/helper/node.rs b/src/helper/node.rs index c5decd1..10aaa9f 100644 --- a/src/helper/node.rs +++ b/src/helper/node.rs @@ -263,6 +263,9 @@ impl Helper { match PrivNodeApi::request_api(&client, &state).await { Ok(priv_api) => { debug!("Node Watchdog | HTTP API request OK, attempting [update_from_priv()]"); + if priv_api.result.synchronized && priv_api.result.status == "OK" { + lock!(process).state = ProcessState::Alive + } PubNodeApi::update_from_priv(pub_api, priv_api); } Err(err) => {