From b26c4616d740ee5fe01a544f040272e4965b8510 Mon Sep 17 00:00:00 2001 From: SChernykh Date: Thu, 2 Sep 2021 23:39:47 +0200 Subject: [PATCH] Fixed wrong diff in api/network/stats --- src/p2pool.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/p2pool.cpp b/src/p2pool.cpp index 6c3a69b..88366d1 100644 --- a/src/p2pool.cpp +++ b/src/p2pool.cpp @@ -237,14 +237,12 @@ void p2pool::handle_chain_main(ChainMain& data, const char* extra) WriteLock lock(m_mainchainLock); ChainMain& c = m_mainchainByHeight[data.height]; - c.difficulty = data.difficulty ? data.difficulty : c.difficulty; c.height = data.height; c.timestamp = data.timestamp; c.reward = data.reward; // data.id not filled in here, but c.id should be available. Copy it to data.id for logging data.id = c.id; - data.difficulty = c.difficulty; m_mainchainByHash[c.id] = c; }