Skip to content
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

Update EIP-663: Replace runtime stack checks with EOF validation rules #7241

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

gumb0
Copy link
Member

@gumb0 gumb0 commented Jun 27, 2023

No description provided.

@github-actions github-actions bot added c-update Modifies an existing proposal s-review This EIP is in Review t-core labels Jun 27, 2023
@eth-bot
Copy link
Collaborator

eth-bot commented Jul 14, 2023

✅ All reviewers have approved.

@eth-bot eth-bot added the a-review Waiting on author to review label Jul 14, 2023
EIPS/eip-663.md Outdated
- `SWAPN n` to fail if `stack_height < (n + 1)`.
- `DUPN n` to fail if `stack_height + 1 > 1024`.
- `DUPN n` and `SWAPN n` to fail if gas available is less than 3.
- `DUPN n` to fail validation if `stack_height < n`.
Copy link
Member

Choose a reason for hiding this comment

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

It's a bit confusing using variable n here.

For example, if n=0:

  • DUPN 0 to fail validation if stack_height < 0.

It is defined above that n is imm+1, but in the same line n looks like it should be the same value. Maybe it could be changed to something like:

For 0 <= i<= 255:

  • DUPN i to fail validation if stack_height < i+1.

Where i represents the immediate.

Copy link
Member Author

Choose a reason for hiding this comment

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

It was a mistake not to change the line with 0 <= n <= 255, changed now, please check.

@gumb0 gumb0 marked this pull request as ready for review August 28, 2023 16:26
@gumb0 gumb0 requested a review from eth-bot as a code owner August 28, 2023 16:26
@axic axic enabled auto-merge (squash) September 22, 2023 11:23
Copy link
Collaborator

@eth-bot eth-bot left a comment

Choose a reason for hiding this comment

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

All Reviewers Have Approved; Performing Automatic Merge...

@axic axic merged commit 4b715cf into ethereum:master Sep 22, 2023
7 checks passed
@axic axic deleted the eip-663-validation branch September 22, 2023 11:23
streamnft-tech pushed a commit to streamnft-tech/EIPs that referenced this pull request Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a-review Waiting on author to review c-update Modifies an existing proposal s-review This EIP is in Review t-core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants