ouroboros-consensus
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Consensus.Peras.Voting.Trace

Synopsis

Documentation

data TracePerasVoteForgingEvent blk Source #

Peras vote forging events.

Constructors

TracePerasVotingNoVoteAfterFirstSlotInRound

We do nothing unless we are on the first slot of a round

Fields

TracePerasVotingNotAVoterInRound

We do nothing if we are not eligible to vote in the current round

Fields

TracePerasVotingRulesDecision

The decision made by the voting rules for a given round

Fields

TracePerasVotingForgedVote

We forged a vote for the current round

Fields

TracePerasVotingAddVoteResult

The result of adding the vote to the PerasVoteDB

Fields

TracePerasVotingAddCertChainSelOutcome

The result of adding the certificate to the PerasCertDB

Fields

TracePerasVotingCantReadEnv String

TODO: get rid of this when we no longer read stuff from env variables

Instances

Instances details
(StandardHash blk, Eq (PerasVote blk), Eq (PerasCert blk))Eq (TracePerasVoteForgingEvent blk) Source # 
Instance details

Defined in Ouroboros.Consensus.Peras.Voting.Trace

Generic (TracePerasVoteForgingEvent blk) Source # 
Instance details

Defined in Ouroboros.Consensus.Peras.Voting.Trace

Associated Types

type Rep (TracePerasVoteForgingEvent blk) 
Instance details

Defined in Ouroboros.Consensus.Peras.Voting.Trace

type Rep (TracePerasVoteForgingEvent blk) = D1 ('MetaData "TracePerasVoteForgingEvent" "Ouroboros.Consensus.Peras.Voting.Trace" "ouroboros-consensus-4.0.0.0-inplace" 'False) ((C1 ('MetaCons "TracePerasVotingNoVoteAfterFirstSlotInRound" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PerasRoundNo) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)) :+: (C1 ('MetaCons "TracePerasVotingNotAVoterInRound" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PerasRoundNo)) :+: C1 ('MetaCons "TracePerasVotingRulesDecision" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PerasRoundNo) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (PerasVotingRulesDecision blk))))) :+: ((C1 ('MetaCons "TracePerasVotingForgedVote" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PerasRoundNo) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithArrivalTime (ValidatedPerasVote blk)))) :+: C1 ('MetaCons "TracePerasVotingAddVoteResult" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PerasRoundNo) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (AddPerasVoteResult blk)))) :+: (C1 ('MetaCons "TracePerasVotingAddCertChainSelOutcome" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PerasRoundNo) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AddPerasCertChainSelOutcome)) :+: C1 ('MetaCons "TracePerasVotingCantReadEnv" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String)))))
(StandardHash blk, Show (PerasVote blk), Show (PerasCert blk))Show (TracePerasVoteForgingEvent blk) Source # 
Instance details

Defined in Ouroboros.Consensus.Peras.Voting.Trace

(StandardHash blk, NoThunks (PerasVote blk), NoThunks (PerasCert blk))NoThunks (TracePerasVoteForgingEvent blk) Source # 
Instance details

Defined in Ouroboros.Consensus.Peras.Voting.Trace

type Rep (TracePerasVoteForgingEvent blk) Source # 
Instance details

Defined in Ouroboros.Consensus.Peras.Voting.Trace

type Rep (TracePerasVoteForgingEvent blk) = D1 ('MetaData "TracePerasVoteForgingEvent" "Ouroboros.Consensus.Peras.Voting.Trace" "ouroboros-consensus-4.0.0.0-inplace" 'False) ((C1 ('MetaCons "TracePerasVotingNoVoteAfterFirstSlotInRound" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PerasRoundNo) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)) :+: (C1 ('MetaCons "TracePerasVotingNotAVoterInRound" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PerasRoundNo)) :+: C1 ('MetaCons "TracePerasVotingRulesDecision" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PerasRoundNo) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (PerasVotingRulesDecision blk))))) :+: ((C1 ('MetaCons "TracePerasVotingForgedVote" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PerasRoundNo) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (WithArrivalTime (ValidatedPerasVote blk)))) :+: C1 ('MetaCons "TracePerasVotingAddVoteResult" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PerasRoundNo) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (AddPerasVoteResult blk)))) :+: (C1 ('MetaCons "TracePerasVotingAddCertChainSelOutcome" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PerasRoundNo) :*: S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AddPerasCertChainSelOutcome)) :+: C1 ('MetaCons "TracePerasVotingCantReadEnv" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String)))))