CChain::FindEarliestAtLeast

Find the earliest block with timestamp equal or greater than the given time and height equal or greater than the given height.

Synopsis

Declared in <chain.h>

CBlockIndex*
FindEarliestAtLeast(
    int64_t nTime,
    int height) const;

Return Value

The earliest matching block index entry, or nullptr if none qualifies.

Parameters

NameDescription
nTimeThe minimum block timestamp.
heightThe minimum block height.