[#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(0x7f2e18df9f58), requires_capability(0x7f2e18c5db18), requires_capability(0x7f2e333412b8), requires_capability(0x7f2e1c0fa978), requires_capability(0x7f2e31502838), requires_capability(0x7f2e14e80d58), requires_capability(0x7f2e42f32248), requires_capability(0x7f2e28088108), requires_capability(0x7f2e327c9d48), requires_capability(0x7f2e35f22558), requires_capability(0x7f2e285e5358)]] 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]#