From 2a6d817ea1b548028da5f5a2bd303e22250ea454 Mon Sep 17 00:00:00 2001 From: wowario Date: Mon, 21 Sep 2020 23:47:19 +0300 Subject: [PATCH] declare version --- src/cryptonote_core/blockchain.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index 384c30bbf..92f58c19e 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -1035,6 +1035,7 @@ size_t Blockchain::recalculate_difficulties(boost::optional start_heig std::vector new_cumulative_difficulties; for (uint64_t height = start_height; height <= top_height; ++height) { + uint8_t version = get_current_hard_fork_version(); uint64_t T = DIFFICULTY_TARGET_V2; uint64_t N = DIFFICULTY_WINDOW_V3; uint64_t HEIGHT = m_db->height();