From 6565b2fb5cb18949b90aae0186f77f164c08c39e Mon Sep 17 00:00:00 2001 From: Gully Chen Date: Fri, 25 Jan 2019 12:34:45 +0800 Subject: [PATCH] call pow-start script when work received --- libpoolprotocols/getwork/EthGetworkClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpoolprotocols/getwork/EthGetworkClient.cpp b/libpoolprotocols/getwork/EthGetworkClient.cpp index b2e64b81f..d5ac0bd00 100644 --- a/libpoolprotocols/getwork/EthGetworkClient.cpp +++ b/libpoolprotocols/getwork/EthGetworkClient.cpp @@ -434,7 +434,7 @@ void EthGetworkClient::processResponse(Json::Value& JRes) zilSecsToNextPoW = JPrm.get(Json::Value::ArrayIndex(4), 0).asUInt(); // check if it's the first work in PoW window - if ((zilPowRuning || zilSecsToNextPoW == 0) && !m_zil_pow_running) + if (zilPowRuning && !m_zil_pow_running) { m_zil_pow_running = true; cnote << "ZIL PoW Window Start";