-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compute the account creation cost in STP only for CALL #7
Conversation
stp/call/shorthands.tex
Outdated
\If \stpCall_{i} = 0 ~ \Then & 0 \\ | ||
\If \stpCall_{i} = 1 ~ \Then & | ||
\begin{cases} | ||
\If \locExists = 1 \vee \locTransfersValue = 0 : & 0 \\ | ||
\If \locExists = 0 \wedge \locTransfersValue = 1 : & G_\text{newaccount} \\ | ||
\end{cases} | ||
\end{cases} | ||
\\ | ||
& \define & | ||
G_\text{newaccount} \cdot | ||
\left[ \begin{array}{cr} | ||
\cdot & \stpCall_{i} \\ | ||
\cdot & (1 - \locExists) \\ | ||
\cdot & \locTransfersValue \\ | ||
\end{array} \right] | ||
\vspace{2mm} \\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only meaningful change. It explicitly sets \locGasNewAcc
to zero for anything but CALL
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recall: in this module \stpCall
is what we could call \isCall
most anywhere else.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems a good formatting choice :)
No description provided.