PrevUpHomeNext

effCloseTime

Calculate the effective ledger close time.

Synopsis
template<
    class Clock,
    class Duration,
    class Rep,
    class Period>
std::chrono::time_point< Clock, Duration >
effCloseTime(
    std::chrono::time_point< Clock, Duration > closeTime,
    std::chrono::duration< Rep, Period > resolution,
    std::chrono::time_point< Clock, Duration > 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