Skip to content

Zero max_fee_per_blob_gas test is ineffective #343

@marioevz

Description

@marioevz

Test test_invalid_tx_max_fee_per_blob_gas is passing even when there is an issue in the verification logic as in this commit here: ethereum/go-ethereum@5f39342

The reason is that the state root included in the test is not the same as the one calculated by geth with the faulty verification logic, because the transaction is executed, and t8n, when there is an invalid transaction in the list of transactions, simply skips the execution and outputs an state root as if the transaction was never executed, but this will almost never be the case if there is a faulty verification, and therefore the block will be still rejected, and the test will pass and won't detect the issue.

There are multiple things that we can do to improve this:

  • Better check the error that the client returns when the blockchain test is executed, and verify that the client detected the invalid transaction
  • Include the test type TransactionTest in execution-spec-tests for this kind of tests, and also StateTest

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope:fwScope: Framework (evm|tools|forks|pytest)scope:testsScope: Changes EL client test cases in `./tests`type:bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions