Chainstate::FindMostWorkChain

Find the candidate block index entry with the most work.

Synopsis

Declared in <validation.h>

[[requires_capability(0x7fb95fa394e8), requires_capability(0x7fb96ac60448), requires_capability(0x7fb96e9d6c68), requires_capability(0x7fb98748c2d8)]]
CBlockIndex*
FindMostWorkChain();

Return Value

The most-work candidate block index entry, or nullptr if none qualifies.