Calculate the effective ledger close time.
template< class time_point> time_point effectiveCloseTime( time_point closeTime, typename time_point::duration const resolution, time_point 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>