Skip to content

Commit

Permalink
Update EIP-7620: Update InitcodeTransaciton validation
Browse files Browse the repository at this point in the history
Merged by EIP-Bot.
  • Loading branch information
shemnon authored Apr 4, 2024
1 parent 96bbb44 commit 8f43e4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion EIPS/eip-7620.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ initcode_cost = 0

#### Transaction validation

- `InitcodeTransaction` is invalid if there are more than `MAX_INITCODE_COUNT` entries in `initcodes`, or if any one exceeds `MAX_INITCODE_SIZE`.
- `InitcodeTransaction` is invalid if there are zero entries in `initcodes`, or if there are more than `MAX_INITCODE_COUNT` entries.
- `InitcodeTransaction` is invalid if any entry in `initcodes` is zero length, or if any entry exceeds `MAX_INITCODE_SIZE`.
- `InitcodeTransaction` is invalid if the `to` is `nil`.

Under transaction validation rules `initcodes` are not validated for conforming to the EOF specification. They are only validated when accessed via `TXCREATE`. This avoids potential DoS attacks of the mempool. If during the execution of an `InitcodeTransaction` no `TXCREATE` instruction is called, such transaction is still valid.
Expand Down

0 comments on commit 8f43e4c

Please sign in to comment.