cardano-ledger-byron-0.1.0.0: The blockchain layer of Cardano during the Byron era
Safe Haskell None
Language Haskell2010

Cardano.Chain.Delegation.Validation.Activation

Contents

Synopsis

Activation

data State Source #

Maps containing, for each delegator, the active delegation and the slot it became active in.

Instances

Instances details
Eq State Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Activation

Show State Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Activation

Generic State Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Activation

NFData State Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Activation

ToCBOR State Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Activation

FromCBOR State Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Activation

NoThunks State Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Activation

type Rep State Source #
Instance details

Defined in Cardano.Chain.Delegation.Validation.Activation

type Rep State = D1 (' MetaData "State" "Cardano.Chain.Delegation.Validation.Activation" "cardano-ledger-byron-0.1.0.0-1U5kXR8zMRrE7QjCz70XVD" ' False ) ( C1 (' MetaCons "State" ' PrefixI ' True ) ( S1 (' MetaSel (' Just "delegationMap") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 Map ) :*: S1 (' MetaSel (' Just "delegationSlots") ' NoSourceUnpackedness ' SourceStrict ' DecidedStrict ) ( Rec0 ( Map KeyHash SlotNumber ))))

activateDelegation :: State -> ScheduledDelegation -> State Source #

Activate a ScheduledDelegation if its activation slot is less than the previous delegation slot for this delegate, otherwise discard it. This is an implementation of the delegation activation rule in the ledger specification.