mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2024-12-22 14:49:21 +00:00
fix: set node process status to alive once syncronized
This commit is contained in:
parent
e8dda5c670
commit
06f8d9bc65
1 changed files with 3 additions and 0 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue