From 383f3d36e6c2bc7136ce5d603913d406e32c10df Mon Sep 17 00:00:00 2001 From: auruya Date: Wed, 10 Dec 2025 13:20:29 +0300 Subject: [PATCH] Fix difficulty cache in get_difficulty_for_next_block (#73) --- src/cryptonote_core/blockchain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index e4f30e08f..567daffe9 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -877,7 +877,7 @@ difficulty_type Blockchain::get_difficulty_for_next_block() std::vector timestamps; std::vector difficulties; uint64_t height; - auto new_top_hash = get_tail_id(height); // get it again now that we have the lock + top_hash = get_tail_id(height); // get it again now that we have the lock ++height; uint8_t version = get_current_hard_fork_version();