Submit found aux blocks

This commit is contained in:
SChernykh
2023-11-20 22:22:37 +01:00
parent d697d0017e
commit 13087dd45e
8 changed files with 69 additions and 17 deletions

View File

@@ -101,6 +101,7 @@ PoolBlock& PoolBlock::operator=(const PoolBlock& b)
m_sidechainHeight = b.m_sidechainHeight;
m_difficulty = b.m_difficulty;
m_cumulativeDifficulty = b.m_cumulativeDifficulty;
m_merkleTree = b.m_merkleTree;
m_merkleProof = b.m_merkleProof;
memcpy(m_sidechainExtraBuf, b.m_sidechainExtraBuf, sizeof(m_sidechainExtraBuf));
m_sidechainId = b.m_sidechainId;
@@ -295,6 +296,9 @@ void PoolBlock::reset_offchain_data()
m_auxChains.shrink_to_fit();
m_auxNonce = 0;
m_merkleTree.clear();
m_merkleTree.shrink_to_fit();
}
bool PoolBlock::get_pow_hash(RandomX_Hasher_Base* hasher, uint64_t height, const hash& seed_hash, hash& pow_hash, bool force_light_mode)