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

Method isBlockType

src/blocksender.cpp:29–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29bool BlockSender::isBlockType(int t) const {
30 return t == MSG_BLOCK || t == MSG_FILTERED_BLOCK
31 || t == MSG_THINBLOCK || t == MSG_XTHINBLOCK || t == MSG_CMPCT_BLOCK;
32}
33
34bool BlockSender::canSend(const CChain& activeChain, const CBlockIndex& block,
35 CBlockIndex *pindexBestHeader)

Callers 2

ProcessGetDataFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls

no outgoing calls

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64