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

Function IsBlockFinalized

src/validation.cpp:3098–3102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3096}
3097
3098bool IsBlockFinalized(const CBlockIndex *pindex) {
3099 AssertLockHeld(cs_main);
3100 return pindexFinalized &&
3101 pindexFinalized->GetAncestor(pindex->nHeight) == pindex;
3102}
3103
3104CBlockIndex* CChainState::AddToBlockIndex(const CBlockHeader& block)
3105{

Callers 2

InvalidChainFoundFunction · 0.85
FinalizeBlockInternalFunction · 0.85

Calls 1

GetAncestorMethod · 0.80

Tested by

no test coverage detected