Skip to content

Comments

feat: Add initcode limit to be double of bytecode limit#491

Merged
rakita merged 1 commit intorelease/v25from
initcode_limit
May 25, 2023
Merged

feat: Add initcode limit to be double of bytecode limit#491
rakita merged 1 commit intorelease/v25from
initcode_limit

Conversation

@rakita
Copy link
Member

@rakita rakita commented May 24, 2023

Set initcode limit from EIP-3860 to be double of ma bytecode size if custom max bytecode size is set inside env.cfg.limit_contract_code_size.

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess that makes sense,
this would also prevent a breaking issue

@rakita
Copy link
Member Author

rakita commented May 25, 2023

I guess that makes sense, this would also prevent a breaking issue

This looks a little bit nicer to me, but if needed we can add an additional limit.

@rakita rakita merged commit 4e6750b into release/v25 May 25, 2023
rakita added a commit that referenced this pull request Aug 8, 2023
* wip separate initial checks

* tests passing, consolidate some checks

* test

* feat: add transfer test

* temp

* Update crates/interpreter/src/gas/calc.rs

* / Initial gas that is deducted from the transaction gas limit.

* fmt

* account states

* temp

* Global account BlockState. wip

* few comments

* wip

* Tests working

* wip changes

* work on update and revert

* AccountState as a simple enum flag

* Add storage for EmptyEip161 account

* split state to component files

* continue spliting, wip State

* feat: Add initcode limit to be double of bytecode limit (#491)

* bigger cleanup, structure it

* wip reverts and the flow

* increments balance and some wip on reverts

* feat: Run CI on release branches (#506)

* feat: Add initcode limit to be double of bytecode limit (#503)

* chore: Move Precompiles to EVMData so Inspector can access it (#504)

* fix previous commit (#507)

* wip cache account, changeset and revert

* plain state wip, reverts compiles now

* working changes

* working and, added timestamps and println

* Add reverts

* clippy happy, some cleanup, work on reverts

* wip on spliting and creating BundleState

* needed things for integration

* Few utilities, emptydb with typed error

* wip

* fix some things

* cleanup

* refactoring

* clippy and some cleanup

* add state clear flag

* bugs fixes

* add state builder

* some cleanup and being more strict

* cleanup, and simplification

* check nonce for account

* make storage was_destroyed

* dont store storage when not needed

* dont ask db for destroyed accounts

* debug logs

* test account

* more debug

* save previous state on double touch

* check if pre eip161 touched account is already empty

* Changr address

* diferent debug account

* set wipe flag for destroyed

* remove some test clones

* nit

* clippy

* make state behind std

* lto

* cleanup

* set bigger stack size in tests

* fmt
@rakita rakita deleted the initcode_limit branch September 5, 2023 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants