MCPcopy Create free account
hub / github.com/ElementsProject/elements / IsBlockPruned

Function IsBlockPruned

src/node/blockstorage.cpp:442–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

440}
441
442bool IsBlockPruned(const CBlockIndex* pblockindex)
443{
444 AssertLockHeld(::cs_main);
445 return (fHavePruned && !(pblockindex->nStatus & BLOCK_HAVE_DATA) && pblockindex->nTx > 0);
446}
447
448// If we're using -prune with -reindex, then delete block files that will be ignored by the
449// reindex. Since reindexing works by starting at block file 0 and looping until a blockfile

Callers 3

rest_blockFunction · 0.85
blockToJSONFunction · 0.85
EXCLUSIVE_LOCKS_REQUIREDFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected