Show hashrate estimate in status
This commit is contained in:
@@ -51,6 +51,7 @@ BlockTemplate::BlockTemplate(p2pool* pool)
|
||||
, m_seedHash{}
|
||||
, m_timestamp(0)
|
||||
, m_poolBlockTemplate(new PoolBlock())
|
||||
, m_finalReward(0)
|
||||
, m_nextPayout(0)
|
||||
{
|
||||
uv_rwlock_init_checked(&m_lock);
|
||||
@@ -121,6 +122,7 @@ BlockTemplate& BlockTemplate::operator=(const BlockTemplate& b)
|
||||
m_txkeyPub = b.m_txkeyPub;
|
||||
m_txkeySec = b.m_txkeySec;
|
||||
*m_poolBlockTemplate = *b.m_poolBlockTemplate;
|
||||
m_finalReward = b.m_finalReward;
|
||||
m_nextPayout = b.m_nextPayout;
|
||||
|
||||
m_minerTx.clear();
|
||||
@@ -414,6 +416,7 @@ void BlockTemplate::update(const MinerData& data, const Mempool& mempool, Wallet
|
||||
return;
|
||||
}
|
||||
|
||||
m_finalReward = final_reward;
|
||||
m_nextPayout = 0;
|
||||
for (size_t i = 0, n = m_shares.size(); i < n; ++i) {
|
||||
if (*m_shares[i].m_wallet == m_pool->params().m_wallet) {
|
||||
|
||||
Reference in New Issue
Block a user