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

Synopsis

Declared in <chain.h>

[[requires_capability(0x7fbc8ce00458), requires_capability(0x7fbca7886fb8), requires_capability(0x7fbca35ad168), requires_capability(0x7fbcad8c7248), requires_capability(0x7fbc74713108), requires_capability(0x7fbc9dcc1e38), requires_capability(0x7fbc8f17e438), requires_capability(0x7fbc84e02f98), requires_capability(0x7fbc9e57c3f8), requires_capability(0x7fbc9f8b6958), requires_capability(0x7fbc976c3fd8)]]
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