ouroboros-consensus-0.1.0.0: Consensus layer for the Ouroboros blockchain protocol
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Consensus.BlockchainTime.WallClock.Util

Description

Support for defining BlockchainTime instances

Synopsis

Tracing

data TraceBlockchainTimeEvent Source #

Time related tracing

Constructors

TraceStartTimeInTheFuture SystemStart NominalDiffTime

The start time of the blockchain time is in the future

We have to block (for NominalDiffTime) until that time comes.

TraceCurrentSlotUnknown UTCTime PastHorizonException

Current slot is not yet known

This happens when the tip of our current chain is so far in the past that we cannot translate the current wallclock to a slot number, typically during syncing. Until the current slot number is known, we cannot produce blocks. Seeing this message during syncing therefore is normal and to be expected.

We record the current time (the time we tried to translate to a SlotNo) as well as the PastHorizonException, which provides detail on the bounds between which we can do conversions. The distance between the current time and the upper bound should rapidly decrease with consecutive TraceCurrentSlotUnknown messages during syncing.

Exceptions