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

Method IsBlockPruned

src/node/blockstorage.cpp:628–632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

626}
627
628bool BlockManager::IsBlockPruned(const CBlockIndex& block) const
629{
630 AssertLockHeld(::cs_main);
631 return m_have_pruned && !(block.nStatus & BLOCK_HAVE_DATA) && (block.nTx > 0);
632}
633
634const CBlockIndex& BlockManager::GetFirstBlock(const CBlockIndex& upper_block, uint32_t status_mask, const CBlockIndex* lower_block) const
635{

Callers 4

rest_blockFunction · 0.80
ProcessGetBlockDataMethod · 0.80
blockToJSONFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected