[#Chainstate-TryAddBlockIndexCandidate] = xref:Chainstate.adoc[Chainstate]::TryAddBlockIndexCandidate :relfileprefix: ../ :mrdocs: Add a block to the candidate set if it has as much work as the current tip. == Synopsis Declared in `<validation.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f2e1ba84c68), requires_capability(0x7f2e145648b8), requires_capability(0x7f2e373bda68), requires_capability(0x7f2e36e346b8)]] void TryAddBlockIndexCandidate(xref:CBlockIndex.adoc[CBlockIndex]* pindex); ---- == Parameters [cols="1,4"] |=== | Name| Description | *pindex* | Block index entry to consider as a candidate. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#