consensus-test
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Consensus.Network.AnchoredFragment.Extras

Description

Functions to move to Ouroboros.Network.AnchoredFragment

Synopsis

Documentation

intersectWithHasHeader b ⇒ AnchoredFragment b → [Point b] → Maybe (Point b) Source #

Find the first point in the fragment

slotLengthHasHeader 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.