Skip to content

Commit

Permalink
backwards predicate description in PPUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
JaredCorduan committed Nov 12, 2019
1 parent e7cd785 commit 524f1bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions shelley/chain-and-ledger/executable-spec/src/STS/Ppup.hs
Expand Up @@ -34,7 +34,7 @@ instance STS (PPUP crypto) where
type Environment (PPUP crypto) = PPUPEnv crypto
data PredicateFailure (PPUP crypto)
= NonGenesisUpdatePPUP (Set (GenKeyHash crypto)) (Set (GenKeyHash crypto))
| PPUpdateTooEarlyPPUP
| PPUpdateTooLatePPUP
| PPUpdateEmpty
| PPUpdateNonEmpty
| PVCannotFollowPPUP
Expand Down Expand Up @@ -73,6 +73,6 @@ ppupTransitionNonEmpty = do
let Epoch slotEpoch = epochFromSlot (Slot 1)
s
< (firstSlot (Epoch $ slotEpoch + 1) *- slotsPrior)
?! PPUpdateTooEarlyPPUP
?! PPUpdateTooLatePPUP

pure $ updatePPup pupS pup
4 changes: 2 additions & 2 deletions shelley/chain-and-ledger/formal-spec/update.tex
Expand Up @@ -91,9 +91,9 @@ \subsection{Protocol Parameter Update Proposals}
This rule has the following predicate failures:

\begin{enumerate}
\item In the case of \var{slot} being smaller than
\item In the case of \var{slot} being greater than or equal to
$\fun{firstSlot}~((\epoch{slot}) + 1) - \fun{SlotsPrior}$, there is
a \emph{PPUpdateTooEarly} failure.
a \emph{PPUpdateTooLate} failure.
\item In the case of \var{pup} being non-empty, if the check $\dom pup \subseteq
\dom genDelegs$ fails, there is a \emph{NonGenesisUpdate} failure as only genesis keys
can be used in the protocol parameter update.
Expand Down

0 comments on commit 524f1bf

Please sign in to comment.