PrevUpHomeNext

effectiveCloseTime

Calculate the effective ledger close time.

Synopsis
template<
    class time_point>
time_point
effectiveCloseTime(
    time_point closeTime,
    typename time_point::duration const resolution,
    time_point priorCloseTime);
Description

After adjusting the ledger close time based on the current resolution, also ensure it is sufficiently separated from the prior close time.

Parameters

Name

Description

closeTime

The raw ledger close time

resolution

The current close time resolution

priorCloseTime

The close time of the prior ledger

Header

#include <ripple/consensus/LedgerTiming.h>


PrevUpHomeNext