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 7f111f2 commit 9d80227653691f23394f085fdc5f15944bf4311d
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 9d80227

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