[#CChain-IsTipRecent] = xref:CChain.adoc[CChain]::IsTipRecent :relfileprefix: ../ :mrdocs: Check whether this chain's tip exists, has enough work, and is recent. == Synopsis Declared in `<chain.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7fb95ccb65b8), requires_capability(0x7fb95d8a27f8), requires_capability(0x7fb969093888), requires_capability(0x7fb96e6bca08), requires_capability(0x7fb96bdee468), requires_capability(0x7fb958063938), requires_capability(0x7fb97e105768), requires_capability(0x7fb96e88a9e8), requires_capability(0x7fb984c04088), requires_capability(0x7fb95ba3c9e8), requires_capability(0x7fb96460cb98)]] bool IsTipRecent( xref:arith_uint256.adoc[arith_uint256] const& min_chain_work, std::chrono::seconds max_tip_age) const; ---- == Return Value True if the tip exists, meets the work threshold, and is recent enough. == Parameters [cols="1,4"] |=== | Name| Description | *min_chain_work* | The minimum cumulative chain work the tip must have. | *max_tip_age* | The maximum age the tip is allowed to have. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#