From bc48be0cdd1e361141976b586014662727d96e60 Mon Sep 17 00:00:00 2001 From: wowario Date: Mon, 17 Sep 2018 00:10:04 +0300 Subject: [PATCH] CN2 PoW from v9 --- src/cryptonote_basic/cryptonote_format_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cryptonote_basic/cryptonote_format_utils.cpp b/src/cryptonote_basic/cryptonote_format_utils.cpp index 54d5a091d..ca7254bf5 100644 --- a/src/cryptonote_basic/cryptonote_format_utils.cpp +++ b/src/cryptonote_basic/cryptonote_format_utils.cpp @@ -946,7 +946,7 @@ namespace cryptonote return true; } 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); return true; }