Browse Source

Windows build fix.

Threading fix.
cl-refactor
Gav Wood 10 years ago
parent
commit
344e0ecaa9
  1. 2
      libethcore/All.h
  2. 6
      libethereum/BlockChain.cpp

2
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"

6
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)

Loading…
Cancel
Save