mirror of
https://github.com/monero-project/monero.git
synced 2025-05-02 17:34:53 -04:00
Cryptonight variant 4 aka CryptonightR
It introduces random integer math into the main loop.
This commit is contained in:
parent
31bdf7bd11
commit
f51397b306
9 changed files with 543 additions and 23 deletions
|
@ -1174,7 +1174,7 @@ namespace cryptonote
|
|||
}
|
||||
blobdata bd = get_block_hashing_blob(b);
|
||||
const int cn_variant = b.major_version >= 7 ? b.major_version - 6 : 0;
|
||||
crypto::cn_slow_hash(bd.data(), bd.size(), res, cn_variant);
|
||||
crypto::cn_slow_hash(bd.data(), bd.size(), res, cn_variant, height);
|
||||
return true;
|
||||
}
|
||||
//---------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue