From 881dcfbd43230694634282b647e8c2396ea18f33 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 (cherry picked from commit 7368e166feef49be38dd96af309ac4746bbfe2b7) --- 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 e5344b27f..81670d0c1 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -3873,6 +3873,7 @@ void Blockchain::get_dynamic_base_fee_estimate_2021_scaling(uint64_t grace_block 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();