Function Ledger.expectedHeight

Get the Height this Ledger should be at if fully synchronized

Height expectedHeight (
  in const(TimePoint) utcTime
) pure nothrow @nogc scope @safe const;

Parameters

NameDescription
utcTime The current time at UTC (in number of seconds since epoch)

Returns

The block height that is expected at the provided utcTime. If utcTime is before Genesis, 0 is returned.