Check whether this chain's tip exists, has enough work, and is recent.
Declared in <chain.h>
[[requires_capability(0x7fd74ceff1c8), requires_capability(0x7fd75fd73d48), requires_capability(0x7fd74e0cd9b8), requires_capability(0x7fd749dba048), requires_capability(0x7fd7380de078), requires_capability(0x7fd756eda268), requires_capability(0x7fd7384c9a38), requires_capability(0x7fd7590d8c68), requires_capability(0x7fd757f7e378), requires_capability(0x7fd73edfa128), requires_capability(0x7fd74964f228)]]
bool
IsTipRecent(
arith_uint256 const& min_chain_work,
std::chrono::seconds max_tip_age) const;
True if the tip exists, meets the work threshold, and is recent enough.
| 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. |