This check requires no knowledge of the blockchain, so it doesn't really need to be in check_transaction.
|
if tx.max_fee_per_gas < tx.max_priority_fee_per_gas: |
|
raise PriorityFeeGreaterThanMaxFeeError( |
|
"priority fee greater than max fee" |
|
) |
EIP-1559 does the check after fetching the account, but that seems like a waste.
This check requires no knowledge of the blockchain, so it doesn't really need to be in
check_transaction.execution-specs/src/ethereum/forks/amsterdam/fork.py
Lines 594 to 597 in 26ff8a6
EIP-1559 does the check after fetching the account, but that seems like a waste.