mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-12-23 03:49:23 +00:00
Fixed PPLNS window calculation
This commit is contained in:
parent
8700edb330
commit
f01bd88edd
1 changed files with 3 additions and 0 deletions
|
@ -267,6 +267,9 @@ void BlockTemplate::update(const MinerData& data, const Mempool& mempool, Wallet
|
|||
m_blockHeader.insert(m_blockHeader.end(), NONCE_SIZE, 0);
|
||||
m_poolBlockTemplate->m_nonce = 0;
|
||||
|
||||
// Fill in m_txinGenHeight here so get_shares() can use it to calculate the correct PPLNS window
|
||||
m_poolBlockTemplate->m_txinGenHeight = data.height;
|
||||
|
||||
m_blockHeaderSize = m_blockHeader.size();
|
||||
|
||||
const int sidechain_version = m_poolBlockTemplate->get_sidechain_version();
|
||||
|
|
Loading…
Reference in a new issue