fix cn-pow variant

This commit is contained in:
fuwa 2019-11-04 15:14:58 +08:00 committed by wowario
parent cf607654b6
commit b78a40f7a4
No known key found for this signature in database
GPG key ID: 24DCBE762DE9C111

View file

@ -698,7 +698,7 @@ namespace cryptonote
}
rx_slow_hash(main_height, seed_height, hash.data, bd.data(), bd.size(), res.data, miners, 0);
} else {
const int pow_variant = b.major_version >= 13 ? 6 : b.major_version >= 11 && b.major_version <= 12 ? 4 : 2;
const int pow_variant = b.major_version >= 11 ? 4 : b.major_version >= 9 ? 2 : 1;
crypto::cn_slow_hash(bd.data(), bd.size(), res, pow_variant, height);
}
return true;