From 9b686673ae853877c51a27b0ab08f1d59888481f Mon Sep 17 00:00:00 2001 From: SChernykh Date: Mon, 23 Jan 2023 13:13:08 +0100 Subject: [PATCH] Fixed m_sharesFailed initialization --- src/miner.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/miner.cpp b/src/miner.cpp index 27a575b..fd22938 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -44,6 +44,7 @@ Miner::Miner(p2pool* pool, uint32_t threads) , m_nonceTimestamp(m_startTimestamp) , m_totalHashes(0) , m_sharesFound(0) + , m_sharesFailed(0) , m_job{} , m_jobIndex{ 0 } { @@ -142,6 +143,7 @@ void Miner::reset_share_counters() { m_totalHashes = 0; m_sharesFound = 0; + m_sharesFailed = 0; } void Miner::run(void* data)