From 2a8151120e9dc355f13fd35e82c922ee8f11363e Mon Sep 17 00:00:00 2001 From: "crypro.zoidberg" Date: Wed, 23 Jan 2019 21:18:34 +0300 Subject: [PATCH] fixed compilation problem --- src/currency_core/scratchpad_helper.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/currency_core/scratchpad_helper.cpp b/src/currency_core/scratchpad_helper.cpp index 343e5c99..b220c8e3 100644 --- a/src/currency_core/scratchpad_helper.cpp +++ b/src/currency_core/scratchpad_helper.cpp @@ -27,7 +27,7 @@ namespace currency } crypto::hash scratchpad_keeper::get_pow_hash(const blobdata& bd, uint64_t height, const crypto::hash& scr_seed) { - CRITICAL_REGION_BEGIN(m_lock); + CRITICAL_REGION_LOCAL(m_lock); crypto::hash res_hash = null_hash; if (scr_seed != m_seed || get_scratchpad_size_for_height(height) != this->size()) { @@ -39,7 +39,6 @@ namespace currency bool res = get_wild_keccak2(bd, res_hash, m_scratchpad); CHECK_AND_ASSERT_THROW_MES(res, "Fatal error on hash calculation: scratchpad_size=" << m_scratchpad.size()); - CRITICAL_REGION_END(); return res_hash; } crypto::hash scratchpad_keeper::get_pow_hash(const block& b, const crypto::hash& scr_seed)