MCPcopy Create free account
hub / github.com/LUX-Core/lux / BlockQueue

Method BlockQueue

src/cpp-ethereum/libethereum/BlockQueue.cpp:47–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45size_t const c_maxUnknownSize = 512 * 1024 * 1024; // Block size can be ~50kb
46
47BlockQueue::BlockQueue()
48{
49 // Allow some room for other activity
50 unsigned verifierThreads = std::max(thread::hardware_concurrency(), 3U) - 2U;
51 for (unsigned i = 0; i < verifierThreads; ++i)
52 m_verifiers.emplace_back([=](){
53 setThreadName("verifier" + toString(i));
54 this->verifierBody();
55 });
56}
57
58BlockQueue::~BlockQueue()
59{

Callers

nothing calls this directly

Calls 3

verifierBodyMethod · 0.95
maxFunction · 0.85
toStringFunction · 0.70

Tested by

no test coverage detected