CN2 PoW from v9

This commit is contained in:
wowario 2018-09-17 00:10:04 +03:00
parent f4a2968a51
commit bc48be0cdd
No known key found for this signature in database
GPG Key ID: 24DCBE762DE9C111
1 changed files with 1 additions and 1 deletions

View File

@ -946,7 +946,7 @@ namespace cryptonote
return true; return true;
} }
blobdata bd = get_block_hashing_blob(b); 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 >= 9 ? 2 : 1;
crypto::cn_slow_hash(bd.data(), bd.size(), res, cn_variant); crypto::cn_slow_hash(bd.data(), bd.size(), res, cn_variant);
return true; return true;
} }