Skip to content

Commit e48079f

Browse files
Niolsamesgen
andcommitted
Document GenesisWindow
Co-authored-by: Alexander Esgen <[email protected]>
1 parent a232e81 commit e48079f

File tree

1 file changed

+7
-1
lines changed
  • ouroboros-consensus/src/ouroboros-consensus/Ouroboros/Consensus/Block

1 file changed

+7
-1
lines changed

ouroboros-consensus/src/ouroboros-consensus/Ouroboros/Consensus/Block/Abstract.hs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,13 @@ succWithOrigin = withOrigin minBound succ
250250
Ouroboros Genesis window
251251
-------------------------------------------------------------------------------}
252252

253-
-- TODO docs/better place?
253+
-- | Size of the Genesis window, in number of slots.
254+
--
255+
-- This is the number of slots that the GDD Governor (Genesis Density
256+
-- Disconnection Governor -- see 'Ouroboros.Consensus.Genesis.Governor') will
257+
-- consider when deciding whether to disconnect from a peer. It has to be
258+
-- smaller or equal to the stability window. For instance, for Shelley-based
259+
-- eras, this will be equal to a stability window, that is @3k/f@.
254260
newtype GenesisWindow = GenesisWindow { unGenesisWindow :: Word64 }
255261
deriving stock (Show, Eq, Ord)
256262
deriving newtype (NoThunks, Num)

0 commit comments

Comments
 (0)