Skip to content

Commit 7ad27ac

Browse files
gurukamathSamWilsn
authored andcommitted
redefine TARGET_BLOB_GAS_PER_BLOCK in terms of other constants
1 parent 06a6280 commit 7ad27ac

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/ethereum/cancun/vm/gas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@
6868
GAS_BLOBHASH_OPCODE = Uint(3)
6969
GAS_POINT_EVALUATION = Uint(50000)
7070

71-
TARGET_BLOB_GAS_PER_BLOCK = U64(393216)
7271
GAS_PER_BLOB = U64(2**17)
72+
TARGET_BLOB_GAS_PER_BLOCK = U64(393216)
7373
MIN_BLOB_GASPRICE = Uint(1)
7474
BLOB_BASE_FEE_UPDATE_FRACTION = Uint(3338477)
7575

src/ethereum/osaka/vm/gas.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@
6969
GAS_BLOBHASH_OPCODE = Uint(3)
7070
GAS_POINT_EVALUATION = Uint(50000)
7171

72-
TARGET_BLOB_GAS_PER_BLOCK = U64(786432)
72+
GAS_PER_BLOB = U64(2**17)
73+
BLOB_SCHEDULE_TARGET = U64(6)
74+
TARGET_BLOB_GAS_PER_BLOCK = GAS_PER_BLOB * BLOB_SCHEDULE_TARGET
7375
BLOB_BASE_COST = Uint(2**13)
7476
BLOB_SCHEDULE_MAX = U64(9)
75-
BLOB_SCHEDULE_TARGET = U64(6)
76-
GAS_PER_BLOB = U64(2**17)
7777
MIN_BLOB_GASPRICE = Uint(1)
7878
BLOB_BASE_FEE_UPDATE_FRACTION = Uint(5007716)
7979

src/ethereum/prague/vm/gas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@
6868
GAS_BLOBHASH_OPCODE = Uint(3)
6969
GAS_POINT_EVALUATION = Uint(50000)
7070

71-
TARGET_BLOB_GAS_PER_BLOCK = U64(786432)
7271
GAS_PER_BLOB = U64(2**17)
72+
TARGET_BLOB_GAS_PER_BLOCK = U64(786432)
7373
MIN_BLOB_GASPRICE = Uint(1)
7474
BLOB_BASE_FEE_UPDATE_FRACTION = Uint(5007716)
7575

0 commit comments

Comments
 (0)