Merge pull request #5126

f1fb06b1 Fixed path to int-util.h (SChernykh)
9da0892b Adding cnv4-2 tweaks (SChernykh)
f51397b3 Cryptonight variant 4 aka CryptonightR (SChernykh)
This commit is contained in:
Riccardo Spagni 2019-03-04 12:10:16 +02:00
commit 1b4fa00d7c
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD
9 changed files with 611 additions and 51 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;
}
//---------------------------------------------------------------