Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data ByronLedgerUpdate = ByronUpdatedProtocolUpdates [ ProtocolUpdate ]
- data ProtocolUpdate = ProtocolUpdate { }
- data UpdateState
- protocolUpdates :: LedgerConfig ByronBlock -> LedgerState ByronBlock -> [ ProtocolUpdate ]
Documentation
data ByronLedgerUpdate Source #
Instances
Eq ByronLedgerUpdate Source # | |
Defined in Ouroboros.Consensus.Byron.Ledger.Inspect (==) :: ByronLedgerUpdate -> ByronLedgerUpdate -> Bool Source # (/=) :: ByronLedgerUpdate -> ByronLedgerUpdate -> Bool Source # |
|
Show ByronLedgerUpdate Source # | |
Defined in Ouroboros.Consensus.Byron.Ledger.Inspect |
|
Condense ByronLedgerUpdate Source # | |
Defined in Ouroboros.Consensus.Byron.Ledger.Inspect condense :: ByronLedgerUpdate -> String Source # |
Layer around the Byron protocol update inteface
data ProtocolUpdate Source #
Wrapper around a Byron protocol update with information about its state
NOTE: We don't currently record the
ProtocolParameters
here because we
don't really need to track them, and adding them would add a lot of output
to the
Show
instance. We could easily add them however if that would be
useful.
Instances
Eq ProtocolUpdate Source # | |
Defined in Ouroboros.Consensus.Byron.Ledger.Inspect (==) :: ProtocolUpdate -> ProtocolUpdate -> Bool Source # (/=) :: ProtocolUpdate -> ProtocolUpdate -> Bool Source # |
|
Show ProtocolUpdate Source # | |
Defined in Ouroboros.Consensus.Byron.Ledger.Inspect |
data UpdateState Source #
The various states a protocol update goes through
Listed in chronological order.
UpdateRegistered SlotNo |
The update was registered, but does not yet have any votes
We record the
|
UpdateActive ( Set KeyHash ) |
The update is accumulating votes We record which nodes have voted for the proposal. The proposal must accumulate a sufficient number of votes before it can be confirmed. |
UpdateConfirmed SlotNo |
The update has amassed a sufficient number of votes
We record the
|
UpdateStablyConfirmed ( Set KeyHash ) |
The votes are stable. We can start to accumulate endorsements. We record which nodes have endorsed the proposal. The proposal must accumulate a sufficient number of endorsements before it is nominated and becomes a candidate. |
UpdateCandidate SlotNo EpochNo |
The update has amassed a sufficient number of endorsements
We record the
We additionally record the
|
UpdateStableCandidate EpochNo |
The endorsements are stable. The update will be accepted.
We record the
|
Instances
Eq UpdateState Source # | |
Defined in Ouroboros.Consensus.Byron.Ledger.Inspect (==) :: UpdateState -> UpdateState -> Bool Source # (/=) :: UpdateState -> UpdateState -> Bool Source # |
|
Show UpdateState Source # | |
Defined in Ouroboros.Consensus.Byron.Ledger.Inspect |
protocolUpdates :: LedgerConfig ByronBlock -> LedgerState ByronBlock -> [ ProtocolUpdate ] Source #
All proposal updates, from new to old