From fc2cb224a92a05e04333835e6444935a070ab4c7 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Mon, 7 Sep 2020 01:57:19 +0000 Subject: blockchain: fix pow skipping for old blocks without precalc hash --- src/cryptonote_core/blockchain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cryptonote_core') diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index 71b32dcf6..5825bac7e 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -4049,8 +4049,8 @@ leave: MCINFO("verify", "No pre-validated hash at height " << blockchain_height << ", verifying fully"); } } - else #endif + if (!fast_check) { auto it = m_blocks_longhash_table.find(id); if (it != m_blocks_longhash_table.end()) -- cgit v1.2.3