MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / IsTxAvailable

Method IsTxAvailable

src/blockencodings.cpp:181–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181bool PartiallyDownloadedBlock::IsTxAvailable(size_t index) const
182{
183 if (header.IsNull()) return false;
184
185 assert(index < txn_available.size());
186 return txn_available[index] != nullptr;
187}
188
189ReadStatus PartiallyDownloadedBlock::FillBlock(CBlock& block, const std::vector<CTransactionRef>& vtx_missing, bool segwit_active)
190{

Callers 3

ProcessMessageMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 2

IsNullMethod · 0.45
sizeMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64