mining performance boost

This commit is contained in:
Michael Toutonghi
2018-06-10 00:12:28 -07:00
parent cf98848cd4
commit 20ab1c9174
6 changed files with 75 additions and 6 deletions

View File

@@ -27,6 +27,12 @@ uint256 CBlockHeader::GetVerusHash() const
return SerializeVerusHash(*this);
}
uint256 CBlockHeader::GetVerusMiningHash() const
{
// no check for genesis block and use the optimized hash
return SerializeVerusMiningHash(*this);
}
void CBlockHeader::SetSHA256DHash()
{
CBlockHeader::hashFunction = &CBlockHeader::GetSHA256DHash;