Skip to content

Commit 4f7f5d2

Browse files
committed
refactor(bundler): Use per-op gas calculation like Rundler
- Replace flat ENTRYPOINT_BUFFER_GAS with per-op overhead: - v0.6: verification_gas + 5k overhead - v0.7: 10k + paymaster_post_op + 1/63 (63/64ths rule) - Add BUNDLE_SHARED_GAS (21k) for transaction intrinsic - Add BUNDLE_TRANSACTION_GAS_OVERHEAD_PERCENT (5%) safety buffer - Update UserOpGasInfo with paymaster fields and proper gas calculation - Fix default aa_gas_threshold to 50% for middle-of-block bundles
1 parent 36fac2f commit 4f7f5d2

File tree

4 files changed

+416
-141
lines changed

4 files changed

+416
-141
lines changed

crates/op-rbuilder/src/args/op.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ pub struct OpRbuilderArgs {
100100
/// Threshold percentage of block gas before starting AA bundle creation (middle of block)
101101
#[arg(
102102
long = "aa.gas-threshold",
103-
default_value = "30",
103+
default_value = "50",
104104
env = "AA_GAS_THRESHOLD"
105105
)]
106106
pub aa_gas_threshold: u8,

0 commit comments

Comments
 (0)