You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(levm): improve and simplify some db functions (#2651)
**Motivation**
<!-- Why does this pull request exist? What are its goals? -->
- Try to remove `account_exists` if possible because it adds complexity
and unnecessary checks to the DB.
- Try to finally remove `get_account_no_push_cache`, which is related to
the previous thing too.
**Description**
- We now ignore a specific test because [EIP-7702 spec has
changed](ethereum/EIPs#9710) and we no longer
need to check if the account exists in the trie.
- Remove `Option` from `specific_tests`
- Remove `get_account_no_push_cache` and the usage of `account_exists`
in LEVM. This method is not deleted from the Database because it's used
in `get_state_transitions`, and even here it could be removed but I
think it is better to keep it in this PR and maybe decide later what to
do with this function. (If we remove it it wouldn't make a difference to
the state though).
- We were able to remove a SpuriousDragon check because we don't support
pre-merge forks now
Note: `account_exists` hasn't been completely removed from `Database`
because we use it in `get_state_transitions` but that is going to change
soon and we'll be able to remove it.
<!-- Link to issues: Resolves#111, Resolves#222 -->
Closes #issue_number
"InitCollision.json",// Skip because it fails on REVM
33
33
];
34
34
35
+
// One .json can have multiple tests, sometimes we want to skip one of those.
36
+
pubconstSPECIFIC_IGNORED_TESTS:[&str;1] = [
37
+
"test_set_code_to_non_empty_storage[fork_Prague-state_test-zero_nonce]",// Skip because EIP-7702 has changed. See https://github.com/ethereum/EIPs/pull/9710
0 commit comments