api: store difficulty and totalHashes for each block

This commit is contained in:
SChernykh
2021-09-03 18:04:54 +02:00
parent 2d8530798d
commit 661d596107
9 changed files with 122 additions and 18 deletions

View File

@@ -29,6 +29,8 @@ namespace log {
int GLOBAL_LOG_LEVEL = 4;
#ifndef P2POOL_LOG_DISABLE
static volatile bool stopped = false;
static volatile bool worker_started = false;
@@ -234,9 +236,9 @@ private:
std::ofstream m_logFile;
};
#ifndef P2POOL_LOG_DISABLE
static Worker worker;
#endif
#endif // P2POOL_LOG_DISABLE
NOINLINE Writer::Writer(Severity severity) : Stream(m_stackBuf)
{