dissatisfied with algorithm, changed out for argon2s

This commit is contained in:
barrystyle
2019-06-05 22:09:28 +08:00
parent 6eaecb1553
commit 89d7a9cd6b
14 changed files with 72 additions and 540 deletions
+1 -3
View File
@@ -18,9 +18,7 @@ uint256 CBlockHeader::GetHash() const
uint256 CBlockHeader::GetPoWHash() const
{
uint256 thash;
PHS((void*)BEGIN(thash),32,(void*)BEGIN(nVersion),80,(void*)BEGIN(nVersion),80,4,4);
return thash;
return argon2s_hash(BEGIN(nVersion), END(nNonce));
}
std::string CBlock::ToString() const