Browse Source

comments

cl-refactor
arkpar 10 years ago
parent
commit
8f9f7d9a6f
  1. 1
      libethereum/BlockChain.cpp
  2. 1
      libethereum/BlockQueue.cpp

1
libethereum/BlockChain.cpp

@ -317,6 +317,7 @@ tuple<h256s, h256s, bool> BlockChain::sync(BlockQueue& _bq, OverlayDB const& _st
{
try
{
// Nonce is already verified thread at this point.
auto r = import(block.first, block.second, _stateDB, ImportRequirements::Default & ~ImportRequirements::ValidNonce);
fresh += r.first;
dead += r.second;

1
libethereum/BlockQueue.cpp

@ -38,6 +38,7 @@ const char* BlockQueueChannel::name() { return EthOrange "▣┅▶"; }
BlockQueue::BlockQueue()
{
// Allow some room for other activity
unsigned verifierThreads = std::max(thread::hardware_concurrency(), 3U) - 2U;
for (unsigned i = 0; i < verifierThreads; ++i)
m_verifiers.emplace_back([=](){

Loading…
Cancel
Save