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

Method numWorkers

src/thinblockmanager.cpp:35–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35int ThinBlockManager::numWorkers(const uint256& block) const {
36 return builders.count(block)
37 ? builders.find(block)->second.workers.size()
38 : 0;
39}
40
41// When a stub provides transactions, add those to the transaction finder (wrap it).
42struct WrappedFinder : public TxFinder {

Callers 6

pickDownloadStrategyMethod · 0.80
onBlockAnnouncedMethod · 0.80
isOnlyWorkerMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 3

countMethod · 0.80
findMethod · 0.80
sizeMethod · 0.45

Tested by 3

BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64