Tests: fixed block_template test volatility

Hashes should stay the same from now on.
This commit is contained in:
SChernykh
2023-03-01 09:20:09 +01:00
parent a76d8049c0
commit e53fd7a062
3 changed files with 7 additions and 2 deletions

View File

@@ -647,7 +647,11 @@ void BlockTemplate::update(const MinerData& data, const Mempool& mempool, Wallet
// Layout: [software id, version, random number, sidechain extra_nonce]
uint32_t* sidechain_extra = m_poolBlockTemplate->m_sidechainExtraBuf;
sidechain_extra[0] = 0;
#ifdef P2POOL_SIDECHAIN_EXTRA_1
sidechain_extra[1] = P2POOL_SIDECHAIN_EXTRA_1;
#else
sidechain_extra[1] = (P2POOL_VERSION_MAJOR << 16) | P2POOL_VERSION_MINOR;
#endif
sidechain_extra[2] = static_cast<uint32_t>(m_rng() >> 32);
sidechain_extra[3] = 0;