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

Method queueBlock

src/cpp-ethereum/libethereum/Client.cpp:127–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127ImportResult Client::queueBlock(bytes const& _block, bool _isSafe)
128{
129 if (m_bq.status().verified + m_bq.status().verifying + m_bq.status().unverified > 10000)
130 this_thread::sleep_for(std::chrono::milliseconds(500));
131 return m_bq.import(&_block, _isSafe);
132}
133
134tuple<ImportRoute, bool, unsigned> Client::syncQueue(unsigned _max)
135{

Callers 1

main.cppFile · 0.80

Calls 2

statusMethod · 0.45
importMethod · 0.45

Tested by

no test coverage detected