feat(tests): EIP-7691: Fork transition tests#1082
Conversation
f0c84de to
3f4df0f
Compare
3f4df0f to
c0c27f3
Compare
c0c27f3 to
791a6ae
Compare
|
Documenting here the drop in coverage when comparing the generated fixtures by this PR against main: The culprit is that we were originally sending the blob transactions to a hard-coded empty address at And was changed in this PR to a new dynamically generated contract with a single Since this test has nothing to do with empty accounts, I think this should be ok. Coverage check doing its job very nicely here because if it was something else that was a bit more serious, it would have been caught here 💯 |
danceratopz
left a comment
There was a problem hiding this comment.
Looks great!
These tests all pass consume direct with s1na/go-ethereum@f24d6f6
Not particular to the changes here (the tests were already so): The tests include type2 tx before the transition and then type3 tx after (no type2). I wondered if we should include type2 after transition as well, in addtion to the new type3 txs?
One other comment below.
* feat(tests): more edge cases for blob gas at transitions * Apply suggestions from code review --------- Co-authored-by: Mario Vega <marioevz@gmail.com>
* refactor(tests): EIP-4844, EIP-7691: Fill fork transition blob tests in newer forks * fix(tests): Rebase fixes, add more checks to the test * chengelog * feat(tests): more blob gas tests for fork transitions (ethereum#1107) * feat(tests): more edge cases for blob gas at transitions * Apply suggestions from code review --------- Co-authored-by: Mario Vega <marioevz@gmail.com> * fix(tests): Remove type-2 txs, destination account is empty * tox: typing --------- Co-authored-by: danceratopz <danceratopz@gmail.com>
* refactor(tests): EIP-4844, EIP-7691: Fill fork transition blob tests in newer forks * fix(tests): Rebase fixes, add more checks to the test * chengelog * feat(tests): more blob gas tests for fork transitions (ethereum#1107) * feat(tests): more edge cases for blob gas at transitions * Apply suggestions from code review --------- Co-authored-by: Mario Vega <marioevz@gmail.com> * fix(tests): Remove type-2 txs, destination account is empty * tox: typing --------- Co-authored-by: danceratopz <danceratopz@gmail.com>


🗒️ Description
Implements fork transition tests for the blob target and max increment by EIP-7691 that occurs on the Prague activation.
Test expectation: At the first block of Prague, we use the
TARGET_BLOB_GAS_PER_BLOCK,MAX_BLOB_GAS_PER_BLOCKandBLOB_BASE_FEE_UPDATE_FRACTION_PRAGUEconstants in EIP-7691, just the same as we use for subsequent blocks for Prague:(output generated with
fill --until Prague -k test_fork_transition_excess_blob_gas --collect-only -q)Requires #1081Merged🔗 Related Issues
None
✅ Checklist