Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Helpers to access particular parts of trees and schedules Those functions are partial, and are designed to only be used in tests. We know they won't fail there, because we generated the structures with the correct properties.
Documentation
getHonestPeer ∷ Map Int a → a Source #
getOnlyBranch ∷ BlockTree blk → BlockTreeBranch blk Source #
getOnlyBranchTip ∷ HasHeader blk ⇒ BlockTree blk → blk Source #
getTrunkTip ∷ HasHeader blk ⇒ BlockTree blk → blk Source #