Fix difficulty cache in get_difficulty_for_next_block (#73)

This commit is contained in:
auruya
2025-12-10 13:20:29 +03:00
committed by GitHub
parent 7d06436d08
commit 383f3d36e6
+1 -1
View File
@@ -877,7 +877,7 @@ difficulty_type Blockchain::get_difficulty_for_next_block()
std::vector<uint64_t> timestamps;
std::vector<difficulty_type> 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();