Skip to content

Commit

Permalink
Enforce DRep thresholds to be 0 during bootstrap phase
Browse files Browse the repository at this point in the history
  • Loading branch information
lehins committed May 7, 2024
1 parent 63ddaf6 commit 2937f50
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ import Cardano.Ledger.Credential (Credential (..))
import Cardano.Ledger.DRep (DRep (..), DRepState (..))
import Cardano.Ledger.Keys (KeyRole (..))
import Cardano.Ledger.PoolDistr (PoolDistr (..))
import qualified Cardano.Ledger.Shelley.HardForks as HF (bootstrapPhase)
import Cardano.Ledger.Shelley.LedgerState (
epochStateIncrStakeDistrL,
epochStateRegDrepL,
Expand Down Expand Up @@ -502,7 +503,9 @@ votingDRepThresholdInternal pp isElectedCommittee action =
, dvtUpdateToConstitution
, dvtHardForkInitiation
, dvtTreasuryWithdrawal
} = pp ^. ppDRepVotingThresholdsL
} -- We reset all (except InfoAction) DRep thresholds to 0 during bootstrap phase
| HF.bootstrapPhase (pp ^. ppProtocolVersionL) = def
| otherwise = pp ^. ppDRepVotingThresholdsL
in case action of
NoConfidence {} -> VotingThreshold dvtCommitteeNoConfidence
UpdateCommittee {} ->
Expand Down

0 comments on commit 2937f50

Please sign in to comment.