Check whether this chain's tip exists, has enough work, and is recent.

Synopsis

Declared in <chain.h>

[[requires_capability(0x7f9500d11988), requires_capability(0x7f951194ac38), requires_capability(0x7f951ec8ee38), requires_capability(0x7f950893a4e8), requires_capability(0x7f9503ce5808), requires_capability(0x7f9515d642f8), requires_capability(0x7f950c08bbe8), requires_capability(0x7f9524d89a68), requires_capability(0x7f9516d98838), requires_capability(0x7f95149503b8), requires_capability(0x7f94f0131dc8)]]
bool
IsTipRecent(
    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

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.

Created with MrDocs