aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/blockchain.cpp
diff options
context:
space:
mode:
authorHoward Chu <hyc@symas.com>2016-03-19 12:57:47 +0000
committerHoward Chu <hyc@symas.com>2016-03-19 12:57:47 +0000
commit9b3e43c3270877f905efc375ddd6f2cf7f64f460 (patch)
tree1834b2cee495cd08410d732e2e78e3d53efc494d /src/cryptonote_core/blockchain.cpp
parentMerge pull request #730 (diff)
downloadmonero-9b3e43c3270877f905efc375ddd6f2cf7f64f460.tar.xz
Fix issue #706
Diffstat (limited to 'src/cryptonote_core/blockchain.cpp')
-rw-r--r--src/cryptonote_core/blockchain.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp
index f540697dc..8b7f298ee 100644
--- a/src/cryptonote_core/blockchain.cpp
+++ b/src/cryptonote_core/blockchain.cpp
@@ -2798,6 +2798,7 @@ void Blockchain::check_against_checkpoints(const checkpoints& points, bool enfor
{
const auto& pts = points.get_points();
+ CRITICAL_REGION_LOCAL(m_blockchain_lock);
m_db->batch_start();
for (const auto& pt : pts)
{