Skip to content
Permalink
Browse files

I just did what you told me Lord! Why are you still mad at me!

  • Loading branch information...
dnadales committed Mar 13, 2019
1 parent a52be49 commit e433c9f1c7fa17e3b2eda91645daf85f6ab7b224
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/Cardano/Chain/Update/Validation/Endorsement.hs
@@ -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
@@ -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

0 comments on commit e433c9f

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