From 95b207f00f67e2945e89e22038faaf7561c1b88f Mon Sep 17 00:00:00 2001 From: Masamune <125840508+Masamuneee@users.noreply.github.com> Date: Fri, 12 Jun 2026 15:36:57 +0700 Subject: [PATCH] Blockchain: fix data race in get_dynamic_base_fee_estimate --- 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 b8babf5a1..23bcc652a 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -3654,6 +3654,7 @@ void Blockchain::get_dynamic_base_fee_estimate_2021_scaling(uint64_t base_reward void Blockchain::get_dynamic_base_fee_estimate_2021_scaling(uint64_t grace_blocks, std::vector &fees) const { + CRITICAL_REGION_LOCAL(m_blockchain_lock); const uint8_t version = get_current_hard_fork_version(); const uint64_t db_height = m_db->height();