Calculate the effective ledger close time.
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);
After adjusting the ledger close time based on the current resolution, also ensure it is sufficiently separated from the prior close time.
Name |
Description |
---|---|
|
The raw ledger close time |
|
The current close time resolution |
|
The close time of the prior ledger |
#include <ripple/consensus/LedgerTiming.h>