cardano-ledger-shelley-1.12.2.1: Shelley Ledger Executable Model
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.Ledger.Shelley.LedgerState.PulsingReward

Synopsis

Documentation

pulseStepPulsingRewUpdate c → ShelleyBase (PulsingRewUpdate c, RewardEvent c) Source #

Run the pulser for a bit. If is has nothing left to do, complete it.

createRUpd ∷ ∀ era. EraGov era ⇒ EpochSizeBlocksMade (EraCrypto era) → EpochState era → CoinActiveSlotCoeffWord64ShelleyBase (RewardUpdate (EraCrypto era)) Source #

To create a reward update, run all 3 phases This function is not used in the rules, so it ignores RewardEvents

completeRupdPulsingRewUpdate c → ShelleyBase (RewardUpdate c, RewardEvent c) Source #

Phase 3 of reward update has several parts a) completeM the pulser (in case there are still computions to run) b) Combine the pulser provenance with the RewardProvenance c) Construct the final RewardUpdate d) Add the leader rewards to both the events and the computed Rewards

circulationEpochState era → CoinCoin Source #

Calculate the current circulation

This is used in the rewards calculation, and for API endpoints for pool ranking.