# Code conversion when an account is touched before the iterator sweep
---
## Context
* write to account (e.g. balance) -> header translated
* what about the code ?
---
## Worst case
* Assumptions:
* 36Mgas block
* 24kb max code size
* Maximum number of translated leaves:
$$
\lceil \frac{36 \times 10^6}{24 \times 2^{10}} \rceil = 793
$$
---
## Worst case (2)
* Attack: send 1 wei to many 24kb accounts
* Extra number of leaves:
$$
\frac{36 \times 10^6}{21000} \times 793 \approx 1359428
$$
---
## Conclusion
* Impossible to work around, if the conversion happens before
* My view: we should no convert the code