ouroboros-consensus
Safe HaskellNone
LanguageHaskell2010

Test.Consensus.Network.AnchoredFragment.Extras

Description

Functions to move to Ouroboros.Network.AnchoredFragment

Synopsis

Documentation

intersectWith ∷ HasHeader b ⇒ AnchoredFragment b → [Point b] → Maybe (Point b) Source #

Find the first point in the fragment

slotLength ∷ HasHeader blk ⇒ AnchoredFragment blk → Int Source #

The number of slots the fragment spans. This is different from the length which is the number of blocks in the fragment.