From 6287e3cbac2b7d6a3f61ba0cc757eb5716a89da8 Mon Sep 17 00:00:00 2001 From: Cyrix126 Date: Fri, 11 Oct 2024 11:38:51 +0200 Subject: [PATCH] fix deadlock p2pool --- src/helper/p2pool.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/helper/p2pool.rs b/src/helper/p2pool.rs index c1f4dec..ae7bd7f 100644 --- a/src/helper/p2pool.rs +++ b/src/helper/p2pool.rs @@ -582,8 +582,7 @@ impl Helper { last_p2pool_request.elapsed() >= Duration::from_secs(60); // need to reload fast to get the first right values after syncing. // check if value is 100k or under and request immediately if that's the case. fixed in release of p2pool including commit https://github.com/SChernykh/p2pool/commit/64a199be6dec7924b41f857a401086f25e1ec9be - if (last_p2pool_request_expired - || pub_api.lock().unwrap().p2pool_difficulty_u64 <= 100000) + if (last_p2pool_request_expired || pub_api_lock.p2pool_difficulty_u64 <= 100000) && process_lock.state == ProcessState::Alive { debug!("P2Pool Watchdog | Attempting [network] & [pool] API file read");