Cryptonight variant 4 aka CryptonightR

It introduces random integer math into the main loop.
This commit is contained in:
SChernykh 2019-02-04 17:49:19 +01:00
parent 31bdf7bd11
commit f51397b306
9 changed files with 543 additions and 23 deletions

View file

@ -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;
}
//---------------------------------------------------------------