mirror of
https://codeberg.org/wowario/wownero
synced 2026-11-18 12:44:09 +01:00
Cryptonight variant 4 aka cn/wow
This commit is contained in:
@@ -1205,7 +1205,7 @@ namespace cryptonote
|
||||
bool get_block_longhash(const block& b, crypto::hash& res, uint64_t height)
|
||||
{
|
||||
blobdata bd = get_block_hashing_blob(b);
|
||||
const int cn_variant = b.major_version >= 7 ? b.major_version - 6 : 0;
|
||||
const int cn_variant = b.major_version >= 11 ? 4 : b.major_version >= 9 && b.major_version <= 10 ? 2 : 1;
|
||||
crypto::cn_slow_hash(bd.data(), bd.size(), res, cn_variant, height);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user