HORIZON HASKELLDocslts/ghc-9.14.xd82dee82026-10-12Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · d82dee8 · 2026-10-12

Modulebyron-spec-chain-1.0.1.1Haskell2010

Byron.Spec.Chain.STS.Block

  • 4 types
  • 29 values
datadata BlockHeader
#

Constructors

Instances6Eq, Data, Show, Generic, HasTypeReps, Rep
datadata BlockBody
#

Constructors

Instances5Data, Show, Generic, HasTypeReps, Rep
datadata Block
#

A block in the chain. The specification only models regular blocks since epoch boundary blocks will be largely ignored in the Byron-Shelley bridge.

Instances6Data, Show, Generic, HasTypeReps, HasSizeInfo, Rep
valuebSize :: Block -> Natural
#

Compute the abstract size (in words) that a block takes.

valuebIsEBB :: Block -> Bool
#

Checks if a block is an epoch boundary block.

The function always returns False because tests will be performed only against chains without EBBs.

valueblockStats :: Block -> BlockStats
#

Count number of transactions in the block

Returns the number of

  • Regular transactions

  • Delegation certificates

  • Update votes

  • Update proposals (0 or 1)