-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EIP-4844: Implement gas accounting #1421
Labels
Comments
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Gas accounting
We introduce data gas as a new type of gas. It is independent of normal gas and follows its own targeting rule, similar to EIP-1559. We use the
excess_data_gas
header field to store persistent data needed to compute the data gas price. For now, only blobs are priced in data gas.DATA_GAS_PER_BLOB: 2 ** 17
MIN_DATA_GASPRICE: 1
DATA_GASPRICE_UPDATE_FRACTION: 2225652
The actual data_fee as calculated via
calc_data_fee
is deducted from the sender balance before transaction execution and burned, and is not refunded in case of transaction failure. (meaning: calc_data_fee will be subtracted from sender near intrinsicGas)The text was updated successfully, but these errors were encountered: