From b78a40f7a45aee1f9ba3413c12a604c6ff904c20 Mon Sep 17 00:00:00 2001 From: fuwa Date: Mon, 4 Nov 2019 15:14:58 +0800 Subject: [PATCH] fix cn-pow variant --- src/cryptonote_core/cryptonote_tx_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cryptonote_core/cryptonote_tx_utils.cpp b/src/cryptonote_core/cryptonote_tx_utils.cpp index b41f2793f..c7083a2b7 100644 --- a/src/cryptonote_core/cryptonote_tx_utils.cpp +++ b/src/cryptonote_core/cryptonote_tx_utils.cpp @@ -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;