Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Commit

Permalink
I just did what you told me Lord! Why are you still mad at me!
Browse files Browse the repository at this point in the history
  • Loading branch information
dnadales committed Mar 13, 2019
1 parent 7f111f2 commit 9d80227
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Cardano/Chain/Update/Validation/Endorsement.hs
Expand Up @@ -69,7 +69,7 @@ registerEndorsement env st endorsement =
-- Try to register the endorsement and check if we can adopt the proposal
[(upId, (_, pps'))] -> if isConfirmedAndStable upId
then if canAdopt numGenesisKeys pps registeredEndorsements' pv
-- Register the endorsement and adopt the proposal in the next epoch
-- Register the endorsement and adopt the proposal in the next epoch
then do
let
fpv = CandidateProtocolVersion
Expand All @@ -83,10 +83,10 @@ registerEndorsement env st endorsement =
, registeredEndorsements = registeredEndorsements'
}

-- Just register the endorsement if we cannot adopt
-- Just register the endorsement if we cannot adopt
else pure $ st { registeredEndorsements = registeredEndorsements' }

-- Ignore the endorsement if the registration isn't stable
-- Ignore the endorsement if the registration isn't stable
else pure st

-- Throw an error if there are multiple proposals for this protocol version
Expand Down

0 comments on commit 9d80227

Please sign in to comment.