[#CChain-IsTipRecent]
= xref:CChain.adoc[CChain]::IsTipRecent
:relfileprefix: ../
:mrdocs:

Check whether this chain&apos;s tip exists, has enough work, and is recent&period;

== Synopsis

Declared in `&lt;chain&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f2e18df9f58), requires&lowbar;capability(0x7f2e18c5db18), requires&lowbar;capability(0x7f2e333412b8), requires&lowbar;capability(0x7f2e1c0fa978), requires&lowbar;capability(0x7f2e31502838), requires&lowbar;capability(0x7f2e14e80d58), requires&lowbar;capability(0x7f2e42f32248), requires&lowbar;capability(0x7f2e28088108), requires&lowbar;capability(0x7f2e327c9d48), requires&lowbar;capability(0x7f2e35f22558), requires&lowbar;capability(0x7f2e285e5358)&rsqb;&rsqb;
bool
IsTipRecent(
    xref:arith_uint256.adoc[arith&lowbar;uint256] const& min&lowbar;chain&lowbar;work,
    std::chrono::seconds max&lowbar;tip&lowbar;age) const;
----

== Return Value

True if the tip exists, meets the work threshold, and is recent enough&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *min&lowbar;chain&lowbar;work*
| The minimum cumulative chain work the tip must have&period;
| *max&lowbar;tip&lowbar;age*
| The maximum age the tip is allowed to have&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
