Use CBlockIndex::IsInMainChain() instead.