From 344e0ecaa90d2fe02d8cea144ac27ac5b07bf191 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Mon, 13 Oct 2014 12:14:55 +0300 Subject: [PATCH] Windows build fix. Threading fix. --- libethcore/All.h | 2 +- libethereum/BlockChain.cpp | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/libethcore/All.h b/libethcore/All.h index 4a6747ff0..7a1ca8f51 100644 --- a/libethcore/All.h +++ b/libethcore/All.h @@ -2,7 +2,7 @@ #include "BlockInfo.h" #include "CommonEth.h" -#include "Dagger.h" +#include "ProofOfWork.h" #include "CryptoHeaders.h" #include "Exceptions.h" diff --git a/libethereum/BlockChain.cpp b/libethereum/BlockChain.cpp index c0b127913..6f0af911c 100644 --- a/libethereum/BlockChain.cpp +++ b/libethereum/BlockChain.cpp @@ -428,8 +428,10 @@ h256s BlockChain::treeRoute(h256 _from, h256 _to, h256* o_common, bool _pre, boo void BlockChain::checkConsistency() { - WriteGuard l(x_details); - m_details.clear(); + { + WriteGuard l(x_details); + m_details.clear(); + } ldb::Iterator* it = m_db->NewIterator(m_readOptions); for (it->SeekToFirst(); it->Valid(); it->Next()) if (it->key().size() == 32)