Skip to content

Commit a076878

Browse files
committed
chore: add max blob gas per block for osaka pre bpo
1 parent 7a8493b commit a076878

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/driver/alloy.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
use crate::{
22
helpers::Ctx,
3-
system::{MAX_BLOB_GAS_PER_BLOCK_CANCUN, MAX_BLOB_GAS_PER_BLOCK_PRAGUE},
3+
system::{
4+
MAX_BLOB_GAS_PER_BLOCK_CANCUN, MAX_BLOB_GAS_PER_BLOCK_OSAKA, MAX_BLOB_GAS_PER_BLOCK_PRAGUE,
5+
},
46
trevm_bail, trevm_ensure, trevm_try, Block, BundleDriver, DriveBundleResult,
57
};
68
use alloy::{
@@ -592,6 +594,7 @@ where
592594
let mbg = match trevm.spec_id() {
593595
SpecId::CANCUN => MAX_BLOB_GAS_PER_BLOCK_CANCUN,
594596
SpecId::PRAGUE => MAX_BLOB_GAS_PER_BLOCK_PRAGUE,
597+
SpecId::OSAKA => MAX_BLOB_GAS_PER_BLOCK_OSAKA,
595598
_ => 0,
596599
};
597600
trevm_ensure!(
@@ -690,6 +693,7 @@ where
690693
let mbg = match trevm.spec_id() {
691694
SpecId::CANCUN => MAX_BLOB_GAS_PER_BLOCK_CANCUN,
692695
SpecId::PRAGUE => MAX_BLOB_GAS_PER_BLOCK_PRAGUE,
696+
SpecId::OSAKA => MAX_BLOB_GAS_PER_BLOCK_OSAKA,
693697
_ => 0,
694698
};
695699
trevm_ensure!(

src/system/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ pub const MAX_BLOB_GAS_PER_BLOCK_CANCUN: u64 = 786_432;
5959
/// The maximum blob gas limit for a block in Prague.
6060
pub const MAX_BLOB_GAS_PER_BLOCK_PRAGUE: u64 = 1_179_648;
6161

62+
/// The maximum blob gas limit for a block in Osaka, pre BPO-1.
63+
pub const MAX_BLOB_GAS_PER_BLOCK_OSAKA: u64 = 1_749_648;
64+
6265
use crate::{
6366
helpers::{Ctx, Evm},
6467
EvmExtUnchecked, Tx,

0 commit comments

Comments
 (0)