Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
g11tech committed Oct 23, 2024
1 parent 09f6f2e commit 448948a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions EIPS/eip-7742.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,13 @@ Even if the EL keeps a fixed target value based on the max, removing the max imp

#### Normalized excess gas

Since the target from CL could theoratically change block to block, we need to normalize excess gas accumulation because at any point we don't want the gas update factor (whether pushing gas up or down) to exceed ~1.125. This is essentially achieved in [EIP-4844](./eip-4844.md) by having an appropriate `BLOB_BASE_FEE_UPDATE_FRACTION` to divide `excessGas` while exponetiating it.
At any block we don't want the gas update factor (whether pushing gas up or down) to exceed ~1.125. This is essentially achieved in [EIP-4844](./eip-4844.md) by having an appropriate `BLOB_BASE_FEE_UPDATE_FRACTION` to divide `excessGas` accumulator while exponetiating it

Since this update fraction is actually directly based on the target (max value excessGas can jump by in a block), we propose to "normalize" the gas diffs every block against its target and then accumulate in `excessGas` so that we accumulate normalized `excessGas` every block and can use a constant normalized update fraction in our fee calculations.
Since the target from CL could theoratically change block to block, we need to normalize excess gas accumulation because the update fraction is actually directly based on the target (max value excessGas can jump by in a block).

CLs must also ensure that the target is always equal to or more than half the max otherwise we will need to also track the max for normalizing our gas calculations (otherwise empty blocks will make the price drop by a factor of more than 1.125)
We propose to "normalize" the gas diffs every block against its target and then accumulate in `excessGas` so that we accumulate normalized `excessGas` every block and can use a constant normalized update fraction in our fee calculations.

Note: CLs must also ensure that the target is always equal to or more than half the max otherwise we will need to also track the max for normalizing our gas calculations (otherwise full blocks will make the price jump by a factor of more than 1.125)

## Specification

Expand Down

0 comments on commit 448948a

Please sign in to comment.