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

Function IsBlockPruned

src/validation.h:531–534  ·  view source on GitHub ↗

Check whether the block associated with this index entry is pruned or not.

Source from the content-addressed store, hash-verified

529
530//! Check whether the block associated with this index entry is pruned or not.
531inline bool IsBlockPruned(const CBlockIndex* pblockindex)
532{
533 return (fHavePruned && !(pblockindex->nStatus & BLOCK_HAVE_DATA) && pblockindex->nTx > 0);
534}
535
536bool IsBTGHardForkEnabledForCurrentBlock(const Consensus::Params& params);
537

Callers 2

rest_blockFunction · 0.85
GetBlockCheckedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected