test_bal_invalid_extraneous_coinbase()¶
Documentation for tests/amsterdam/eip7928_block_level_access_lists/test_block_access_lists_invalid.py::test_bal_invalid_extraneous_coinbase@892e6d1e.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip7928_block_level_access_lists/test_block_access_lists_invalid.py::test_bal_invalid_extraneous_coinbase --fork Amsterdam
Test that clients reject blocks where BAL contains a spurious coinbase entry when the coinbase received no fees.
Coinbase is only included in BAL when it receives transaction tips. In blocks with no transactions, the coinbase receives nothing — even if withdrawals modify other accounts' balances.
- empty_block: No txs, no withdrawals. Only system contracts.
- withdrawal_only: No txs, one withdrawal to a different address. Withdrawals don't pay fees, so coinbase is still untouched.
Source code in tests/amsterdam/eip7928_block_level_access_lists/test_block_access_lists_invalid.py
1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 | |
Parametrized Test Cases¶
This test generates 2 parametrized test cases across 1 fork.