Skip to content
Permalink
Browse files

Update src/Cardano/Chain/Update/Validation/Endorsement.hs

Co-Authored-By: dnadales <damian.nadales@gmail.com>
  • Loading branch information...
mhuesch and dnadales committed Mar 14, 2019
1 parent 9054bb1 commit a32ce62ac914b0012afd550612c06f3f40d90603
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/Cardano/Chain/Update/Validation/Endorsement.hs
@@ -130,6 +130,9 @@ canAdopt n pps endorsements protocolVersion = t <= numberOfEndorsements
ProtocolParameters { ppUpdateProposalThd } = pps

t :: Double
-- Here we assume that stake is evenly distributed among the Genesis Keys.
-- Thus, the LovelacePortion can be multiplied by the number of keys to yield
-- the endorsement threshold.
t = lovelacePortionToDouble ppUpdateProposalThd * fromIntegral n

numberOfEndorsements :: Double

0 comments on commit a32ce62

Please sign in to comment.
You can’t perform that action at this time.