Skip to content

Commit

Permalink
Merge pull request #2516 from input-output-hk/jc/fix-createRUpd-spec
Browse files Browse the repository at this point in the history
fix createRUpd in spec, add TICKN to diagram
  • Loading branch information
nc6 authored Oct 11, 2021
2 parents 8ef01f2 + dd7327b commit 3f2c3fc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eras/shelley/formal-spec/epoch.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1432,8 +1432,8 @@ \subsection{Reward Update Calculation}
\Delta t_1,-~\Delta r_1+\Delta r_2,~\var{rs},~-\var{feeSS}\right) \\
& ~~~\where \\
& ~~~~~~~(\var{acnt},~\var{ss},~\var{ls},~\var{prevPp},~\wcard) = \var{es} \\
& ~~~~~~~(\wcard,~\wcard,~\var{pstake_{go}},~\var{poolsSS},~\var{feeSS}) = \var{ss}\\
& ~~~~~~~(\var{stake},~\var{delegs}) = \var{pstate_{go}} \\
& ~~~~~~~(\wcard,~\wcard,~\var{pstake_{go}},~\var{feeSS}) = \var{ss}\\
& ~~~~~~~(\var{stake},~\var{delegs},~\var{poolParams}) = \var{pstate_{go}} \\
& ~~~~~~~(\wcard,~\var{reserves}) = \var{acnt} \\
& ~~~~~~~\left(
\wcard,~
Expand All @@ -1456,7 +1456,7 @@ \subsection{Reward Update Calculation}
& ~~~~~~~\var{R} = \var{rewardPot} - \Delta t_1 \\
& ~~~~~~~\var{circulation} = \var{total} - \var{reserves} \\
& ~~~~~~~\var{rs}
= \reward{prevPp}{b}{R}{(\dom{rewards})}{poolsSS}{stake}{delegs}{circulation} \\
= \reward{prevPp}{b}{R}{(\dom{rewards})}{poolParams}{stake}{delegs}{circulation} \\
& ~~~~~~~\Delta r_{2} = R - \left(\sum\limits_{\_\mapsto c\in\var{rs}}c\right) \\
& ~~~~~~~blocksMade = \sum_{\wcard \mapsto m \in b}m
\end{align*}
Expand Down
4 changes: 4 additions & 0 deletions eras/shelley/formal-spec/frontmatter.tex
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
remove all mentions of deposit decay, sync varibale names with code.}
\change{2021/08/27}{Jared Corduan}{FM (IOHK)}{Fixed definitions in the header-only validation properties.
CHAIN transition did not need to use previous protocol parameters.}
\change{2021/10/08}{Jared Corduan}{FM (IOHK)}{The function createRUpd
should get the pool parameters from the go snapshot.
The TICKN rule was missing from the dependency diagram.}
\end{changelog}
\clearpage%
\renewcommand{\thepage}{\arabic{page}}
Expand Down Expand Up @@ -66,6 +69,7 @@ \section*{List of Contributors}
\label{acknowledgements}

Nicol\'as Arqueros,
Dan Bornside,
Nicholas Clarke,
Duncan Coutts,
Ruslan Dudin,
Expand Down
3 changes: 3 additions & 0 deletions eras/shelley/formal-spec/rules.dot
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ digraph STS {
CHAIN -> BBODY
CHAIN -> PRTCL
CHAIN -> TICK
CHAIN -> TICKN
TICKN -> PRTCL [style=dotted]

BBODY -> PRTCL [style=dotted]
BBODY -> TICK [style=dotted]
PRTCL -> TICK [style=dotted]
Expand Down
Binary file modified eras/shelley/formal-spec/rules.pdf
Binary file not shown.

0 comments on commit 3f2c3fc

Please sign in to comment.