Skip to content

Comments

checks for a transaction in cancun#935

Merged
gurukamath merged 1 commit intoethereum:masterfrom
gurukamath:tx-includibility-cancun
Apr 22, 2024
Merged

checks for a transaction in cancun#935
gurukamath merged 1 commit intoethereum:masterfrom
gurukamath:tx-includibility-cancun

Conversation

@gurukamath
Copy link
Contributor

What was wrong?

Some incredibility checks were in the process_transaction function instead of the check_transaction function

Related to Issue #799

How was it fixed?

The following changes have been made in the PR

  • Change the check_transaction function to include all the includibility checks for a transaction
  • Get rid of the validate_transaction function and incorporate it within the check_transaction function.
  • Change the order of the check_transaction function inputs to reflect the chronological order of the forks in which the parameters were introduced.
  • Update the check_transaction function of the t8n tool work with the new signature of check_transaction for cancun. Note: This is a temporary change and the final version of this function can only be implemented after the changes have been ported over to the other forks.
  • Replace the use of ensure with explicit if statements.

Cute Animal Picture

Cute Animals - 1 of 1 (1)

The following changes have been made in the PR
- Change the check_transaction function to include all the includibility checks for a transaction
- Get rid of the validate_transaction function and incorporate it within the check_transaction function.
- Change the order of the check_transaction function inputs to reflect the chronological order of the forks in which the parameters were introduced.
- Update the check_transaction function of the t8n tool work with the new signature of check_transaction for cancun. Note: This is the rtemporary change and the final version of this function can only be implemented after the changes have been ported over to the other forks.
- Replace the use of ensure with explicit if statements.
@gurukamath gurukamath marked this pull request as ready for review April 22, 2024 10:20
@gurukamath gurukamath requested a review from SamWilsn April 22, 2024 11:29
@gurukamath gurukamath merged commit 5ab5c6f into ethereum:master Apr 22, 2024
Carsons-Eels pushed a commit to Carsons-Eels/execution-specs that referenced this pull request Oct 16, 2025
…ixtureConsumer` (ethereum#935)

* refactor(ethereum_clis): move `TransitionTool.verify_fixture()` to `Statetest` & `Blocktest`

docs: update changelog

chore: clean-out currently unused code from `test_statetest`

fix(clis): ruff

fix(fixtures): ruff

refactor(clis,fixtures): Refactor FixtureConsumer into two separate classes

refactor(clis): Rename file

refactor(plugins): Parametrize direct with all consumers, make `fixture_format` a mandatory parameter

fix(plugins/consume): nit

fix(plugins/consume,fixtures,clis): remove geth-specific workarounds, generalize consume direct test

fix(clis): Fix geth state test consume

fix(plugins/filler): Generalize fixture verifier

* rename function

* Remove duplicate parametrization

* Rename `t8n_subcommand` to `subcommand`

* Refactor `FixtureConsumer`

* docs: reword changelog

---------

Co-authored-by: Mario Vega <marioevz@gmail.com>
danceratopz added a commit to danceratopz/execution-specs that referenced this pull request Oct 22, 2025
…ixtureConsumer` (ethereum#935)

* refactor(ethereum_clis): move `TransitionTool.verify_fixture()` to `Statetest` & `Blocktest`

docs: update changelog

chore: clean-out currently unused code from `test_statetest`

fix(clis): ruff

fix(fixtures): ruff

refactor(clis,fixtures): Refactor FixtureConsumer into two separate classes

refactor(clis): Rename file

refactor(plugins): Parametrize direct with all consumers, make `fixture_format` a mandatory parameter

fix(plugins/consume): nit

fix(plugins/consume,fixtures,clis): remove geth-specific workarounds, generalize consume direct test

fix(clis): Fix geth state test consume

fix(plugins/filler): Generalize fixture verifier

* rename function

* Remove duplicate parametrization

* Rename `t8n_subcommand` to `subcommand`

* Refactor `FixtureConsumer`

* docs: reword changelog

---------

Co-authored-by: Mario Vega <marioevz@gmail.com>
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.

3 participants