ouroboros-consensus-0.1.0.0: Consensus layer for the Ouroboros blockchain protocol
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Consensus.Block.SupportsMetrics

Description

Synopsis

Documentation

class BlockSupportsMetrics blk where Source #

Evidence that a block supports the metrics needed for business requirements

For example, we use isSelfIssued to help Stake Pool Operators monitor how many of their forged blocks have not ended up on their chain.

data WhetherSelfIssued Source #

Whether a block was issued by a stakeholder currently forging on this node

Constructors

IsSelfIssued 
IsNotSelfIssued 
UnknownSelfIssued

We are unable to determine

isSelfIssuedConstUnknownBlockConfig blk → Header blk → WhetherSelfIssued Source #

Use this default for block types that cannot or do not yet support the predicate