Safe Haskell | None |
---|---|
Language | Haskell2010 |
See
BlockSupportsMetrics
.
Synopsis
-
class
BlockSupportsMetrics
blk
where
- isSelfIssued :: BlockConfig blk -> Header blk -> WhetherSelfIssued
- data WhetherSelfIssued
- isSelfIssuedConstUnknown :: BlockConfig blk -> Header blk -> WhetherSelfIssued
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.
isSelfIssued :: BlockConfig blk -> Header blk -> WhetherSelfIssued Source #
See
WhetherSelfIssued
.
Instances
CanHardFork xs => BlockSupportsMetrics ( HardForkBlock xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.Node.Metrics isSelfIssued :: BlockConfig ( HardForkBlock xs) -> Header ( HardForkBlock xs) -> WhetherSelfIssued Source # |
data WhetherSelfIssued Source #
Whether a block was issued by a stakeholder currently forging on this node
IsSelfIssued | |
IsNotSelfIssued | |
UnknownSelfIssued |
We are unable to determine |
Instances
Eq WhetherSelfIssued Source # | |
Defined in Ouroboros.Consensus.Block.SupportsMetrics (==) :: WhetherSelfIssued -> WhetherSelfIssued -> Bool Source # (/=) :: WhetherSelfIssued -> WhetherSelfIssued -> Bool Source # |
|
Show WhetherSelfIssued Source # | |
Defined in Ouroboros.Consensus.Block.SupportsMetrics |
isSelfIssuedConstUnknown :: BlockConfig blk -> Header blk -> WhetherSelfIssued Source #
Use this default for block types that cannot or do not yet support the predicate