From cee12f793c61de5a3cc9ee7c6eeaa8aaefcef18a Mon Sep 17 00:00:00 2001 From: dapplion <35266934+dapplion@users.noreply.github.com> Date: Tue, 10 Sep 2024 10:43:49 +0200 Subject: [PATCH] Add EIP-4844-B --- network-upgrades/dencun.md | 6 ++++-- network-upgrades/london.md | 2 +- network-upgrades/pectra.md | 11 ++++++++++- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/network-upgrades/dencun.md b/network-upgrades/dencun.md index fd6267e..fcafe58 100644 --- a/network-upgrades/dencun.md +++ b/network-upgrades/dencun.md @@ -25,10 +25,12 @@ Note: The trusted setup required for [deneb's cryptography](https://github.com/e ### [EIP-4844](https://eips.ethereum.org/EIPS/eip-4844) -Gnosis chain has slots significantly faster than Ethereum. Bigger blocks _could_ have a higher cost to the network than Ethereum so we may price blobs differently. Ethereum mainnet has chosen a target of 3 blobs from real live experiments on mainnet with big blocks. Consecuently this parameters may not be adecuate. +Gnosis chain has slots significantly faster than Ethereum. Bigger blocks have a higher cost to the network than Ethereum so we reduce the blob count per block to a safer value. price blobs differently. Ethereum mainnet has chosen a target of 3 blobs from real live experiments on mainnet with big blocks. Consecuently this parameters may not be adecuate. We ran a big blocks experiment that informed the chosen parameters. See this [research doc](../research/dencun/eip-4844.md) for details on the experiment. Gnosis chain has significantly cheaper fees than mainnet, so blob spam is a concern. Ethereum's `MIN_BLOB_GASPRICE` makes blob space free (1e-18 USD / blob) if usage is under the target for a sustained period of time. The same concern applies to Ethereum, but consensus is that choosing a specific value that may apply to only some market conditions and not others. Given that Gnosis native token is a stable coin, this concerns are mitigated. Given usage under target for regular txs and blob data, setting min blob gas price to 1 GWei reduces the cost per byte by a factor of 16. +Note that the blob gas fee is burned as defined by [EIP-4844](https://eips.ethereum.org/EIPS/eip-4844) spec. Gnosis adaptation of EIP-1559 collects transaction base fees on a predefined address. This behaviour will apply on blob gas fees on the next fork [pectra](../pectra.md). + | Constant | Value | | -------- | ----- | | MIN_BLOB_GASPRICE | 1000000000 | @@ -36,7 +38,7 @@ Gnosis chain has significantly cheaper fees than mainnet, so blob spam is a conc | MAX_BLOB_GAS_PER_BLOCK | 262144 | | BLOB_GASPRICE_UPDATE_FRACTION | 1112826 | -See [rationale](../research/dencun/eip-7514.md) for chosen blob gas parameters. +See [rationale](../research/dencun/eip-4844.md) for chosen blob gas parameters. ### [EIP-7514](https://eips.ethereum.org/EIPS/eip-7514) diff --git a/network-upgrades/london.md b/network-upgrades/london.md index 18e7c28..17562bf 100644 --- a/network-upgrades/london.md +++ b/network-upgrades/london.md @@ -21,7 +21,7 @@ Gnosis chain native token is xDAI (wrapped DAI). Each xDAI token represents a cl | - | - | | EIP1559_FEE_COLLECTOR | 0x6BBe78ee9e474842Dbd4AB4987b3CeFE88426A92 | -Block validity is modified by extending the reference implementation in the EIP. The burned fee is transfered to a pre-definied address as part of block processing. +Block validity is modified by extending the reference implementation in the EIP. The burned fee is transfered to the pre-definied address `EIP1559_FEE_COLLECTOR` as part of block processing. ```diff class World(ABC): diff --git a/network-upgrades/pectra.md b/network-upgrades/pectra.md index 4209b95..231ca45 100644 --- a/network-upgrades/pectra.md +++ b/network-upgrades/pectra.md @@ -14,6 +14,7 @@ Table below list differences if any. | [EIP-7002](https://eips.ethereum.org/EIPS/eip-7002): Execution layer triggerable exits | EL | Not modified, same addresses as Ethereum | [EIP-7251](https://eips.ethereum.org/EIPS/eip-7251): Increase the MAX_EFFECTIVE_BALANCE | CL | Not modified | [EIP-7549](https://eips.ethereum.org/EIPS/eip-7549): Move committee index outside Attestation | CL | Not modified +| [EIP-4844-B](https://eips.ethereum.org/EIPS/eip-4844): Shard Blob Transactions | CL | Modified \* See [Differences with Ethereum mainnet](#differences-with-ethereum-mainnet) @@ -21,7 +22,15 @@ Note: The trusted setup required for [deneb's cryptography](https://github.com/e ## Differences with Ethereum mainnet -_TBA_ +### [EIP-4844-B](https://eips.ethereum.org/EIPS/eip-4844) + +Extends the modified Gnosis EIP-4844 as defined in the [dencun spec](../dencun.md) document. Starting at the fork timestamp, the blob base fee is collected instead of burned. + +| Constant | Value | +| - | - | +| EIP4844_FEE_COLLECTOR | 0x6BBe78ee9e474842Dbd4AB4987b3CeFE88426A92 | + +The actual `blob_fee` as calculated via `calc_blob_fee` is deducted from the sender balance before transaction execution and credited to the pre-defined address `EIP4844_FEE_COLLECTOR` as part of block processing. It is not refunded in case of transaction failure. ## Upgrade Schedule