MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / addWorker

Method addWorker

src/thinblockmanager.cpp:16–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14{ }
15
16void ThinBlockManager::addWorker(const uint256& block, ThinBlockWorker& w) {
17 if (!builders.count(block))
18 builders[block] = ThinBlockManager::ActiveBuilder();
19 builders[block].workers.insert(&w);
20}
21
22void ThinBlockManager::delWorker(const uint256& block, ThinBlockWorker& w) {
23 assert(builders.count(block));

Callers 2

addWorkMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 3

ActiveBuilderClass · 0.85
countMethod · 0.80
insertMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64