Skip to content

Commit

Permalink
Minor corrections before PR
Browse files Browse the repository at this point in the history
  • Loading branch information
dnadales committed May 29, 2019
1 parent 3225fea commit 1a86ae5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions byron/ledger/executable-spec/src/Ledger/Update.hs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ data PParams = PParams -- TODO: this should be a module of @cs-ledger@.
, _cfmThd :: Int -- TODO: this should be a double
-- ^ Update proposal confirmation threshold (number of votes)
, _upAdptThd :: Double
-- ^ Update adoption threshold (number of block issuers)
-- ^ Update adoption threshold: a proportion of block issuers that have to
-- endorse a given version to become candidate for adoption
, _stableAfter :: Core.BlockCount
-- ^ Chain stability parameter
, _factorA :: Int
Expand Down Expand Up @@ -554,7 +555,7 @@ instance STS FADS where
data UPEND

-- | Find the key that corresponds to the value satisfying the given predicate.
-- In case more than one key is found this function returns Nothing.
-- In case zero or more than one key is found this function returns Nothing.
findKey :: (v -> Bool) -> Map k v -> Maybe (k, v)
findKey p m =
case Map.toList (Map.filter p m) of
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pparamsGen =
<*> slotBlockGen
<*> Gen.integral (Range.linear (0 :: Natural) 1000) -- scriptVersion
<*> Gen.integral (Range.linear 0 1000) -- cfmThd
<*> Gen.double (Range.constant 0 1) -- upAdptThd
<*> Gen.double (Range.constant 0 1) -- upAdptThd
<*> pure 0 -- factor @a@
<*> pure 0 -- factor @b@
where
Expand Down
2 changes: 1 addition & 1 deletion byron/ledger/formal-spec/notation.tex
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ \section{Notation}\label{sec:notation}
pattern, then the premise does not hold, and the rule cannot trigger.

\item[Ceiling] Given a number $n \in \mathbb{R}$, $\ceil{n}$ represents the
ceiling of $n$.
ceiling of $n$, and $\floor{n}$ represents its floor.
\end{description}

\begin{figure}[htb]
Expand Down

0 comments on commit 1a86ae5

Please sign in to comment.