Skip to content

Commit

Permalink
Merge pull request #290 from pirapira/eip170_max_codesize
Browse files Browse the repository at this point in the history
Spurious Dragon: EIP170 max code size
  • Loading branch information
gavofyork authored Jul 5, 2017
2 parents 1e18248 + f915d07 commit 8dd4974
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Paper.tex
Original file line number Diff line number Diff line change
Expand Up @@ -695,14 +695,16 @@ \section{Contract Creation} \label{ch:create}

\begin{align}
\quad g' &\equiv \begin{cases}
0 & \text{if} \quad \boldsymbol{\sigma}^{**} = \varnothing \\
0 & \text{if} \quad F \\
g^{**} - c & \text{otherwise} \\
\end{cases} \\
\quad \boldsymbol{\sigma}' &\equiv \begin{cases}
\boldsymbol{\sigma} & \text{if} \quad \boldsymbol{\sigma}^{**} = \varnothing \\
\boldsymbol{\sigma} & \text{if} \quad F \\
\boldsymbol{\sigma}^{**} \quad \text{except:} & \\
\quad\boldsymbol{\sigma}'[a]_c = \texttt{\small KEC}(\mathbf{o}) & \text{otherwise}
\end{cases}
\end{cases} \\
\nonumber \text{where} \\
F &\equiv \big(\boldsymbol{\sigma}^{**} = \varnothing \ \vee\ g^{**} < c \ \vee\ |\mathbf{o}| > 24576\big)
\end{align}

The exception in the determination of $\boldsymbol{\sigma}'$ dictates that $\mathbf{o}$, the resultant byte sequence from the execution of the initialisation code, specifies the final body code for the newly-created account.
Expand Down

0 comments on commit 8dd4974

Please sign in to comment.