-
Notifications
You must be signed in to change notification settings - Fork 600
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(EIP-7840): Add blob schedule to execution client cfg (#1980)
* feat(EIP-7840): Add blob schedule to execution client configuration files * fix test * no_std include vec * doc
- Loading branch information
Showing
9 changed files
with
157 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,43 @@ | ||
//! EIP-4844 constants | ||
//! | ||
/// First version of the blob | ||
pub const VERSIONED_HASH_VERSION_KZG: u8 = 0x01; | ||
|
||
/// Gas consumption of a single data blob (== blob byte size) | ||
pub const GAS_PER_BLOB: u64 = 1 << 17; | ||
|
||
/// Min blob gas price | ||
pub const MIN_BLOB_GASPRICE: u64 = 1; | ||
|
||
/// Target number of the blob per block | ||
pub const TARGET_BLOB_NUMBER_PER_BLOCK: u64 = 3; | ||
pub const TARGET_BLOB_NUMBER_PER_BLOCK_CANCUN: u64 = 3; | ||
|
||
/// Max number of blobs per block | ||
pub const MAX_BLOB_NUMBER_PER_BLOCK: u64 = 2 * TARGET_BLOB_NUMBER_PER_BLOCK; | ||
pub const MAX_BLOB_NUMBER_PER_BLOCK_CANCUN: u64 = 2 * TARGET_BLOB_NUMBER_PER_BLOCK_CANCUN; | ||
|
||
/// Maximum consumable blob gas for data blobs per block | ||
pub const MAX_BLOB_GAS_PER_BLOCK: u64 = MAX_BLOB_NUMBER_PER_BLOCK * GAS_PER_BLOB; | ||
pub const MAX_BLOB_GAS_PER_BLOCK_CANCUN: u64 = MAX_BLOB_NUMBER_PER_BLOCK_CANCUN * GAS_PER_BLOB; | ||
|
||
/// Target consumable blob gas for data blobs per block (for 1559-like pricing) | ||
pub const TARGET_BLOB_GAS_PER_BLOCK: u64 = TARGET_BLOB_NUMBER_PER_BLOCK * GAS_PER_BLOB; | ||
|
||
/// Minimum gas price for data blobs | ||
pub const MIN_BLOB_GASPRICE: u64 = 1; | ||
pub const TARGET_BLOB_GAS_PER_BLOCK_CANCUN: u64 = | ||
TARGET_BLOB_NUMBER_PER_BLOCK_CANCUN * GAS_PER_BLOB; | ||
|
||
/// Controls the maximum rate of change for blob gas price | ||
pub const BLOB_GASPRICE_UPDATE_FRACTION: u64 = 3338477; | ||
pub const BLOB_BASE_FEE_UPDATE_FRACTION_CANCUN: u64 = 3338477; | ||
|
||
/// First version of the blob | ||
pub const VERSIONED_HASH_VERSION_KZG: u8 = 0x01; | ||
/// Target number of the blob per block | ||
pub const TARGET_BLOB_NUMBER_PER_BLOCK_PRAGUE: u64 = 6; | ||
|
||
/// Max number of blobs per block | ||
pub const MAX_BLOB_NUMBER_PER_BLOCK_PRAGUE: u64 = 9; | ||
|
||
/// Maximum consumable blob gas for data blobs per block | ||
pub const MAX_BLOB_GAS_PER_BLOCK_PRAGUE: u64 = MAX_BLOB_NUMBER_PER_BLOCK_PRAGUE * GAS_PER_BLOB; | ||
|
||
/// Target consumable blob gas for data blobs per block (for 1559-like pricing) | ||
pub const TARGET_BLOB_GAS_PER_BLOCK_PRAGUE: u64 = | ||
TARGET_BLOB_NUMBER_PER_BLOCK_PRAGUE * GAS_PER_BLOB; | ||
|
||
/// Controls the maximum rate of change for blob gas price | ||
pub const BLOB_BASE_FEE_UPDATE_FRACTION_PRAGUE: u64 = 5007716; |
Oops, something went wrong.