MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / Start

Method Start

src/index/base.cpp:257–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257void BaseIndex::Start()
258{
259 // Need to register this ValidationInterface before running Init(), so that
260 // callbacks are not missed if Init sets m_synced to true.
261 RegisterValidationInterface(this);
262 if (!Init()) {
263 FatalError("%s: %s failed to initialize", __func__, GetName());
264 return;
265 }
266
267 m_thread_sync = std::thread(&TraceThread<std::function<void()>>, GetName(),
268 std::bind(&BaseIndex::ThreadSync, this));
269}
270
271void BaseIndex::Stop()
272{

Callers 1

BOOST_FIXTURE_TEST_CASEFunction · 0.45

Calls 2

FatalErrorFunction · 0.85

Tested by 1

BOOST_FIXTURE_TEST_CASEFunction · 0.36