diff --git a/Cargo.lock b/Cargo.lock index b7081c98..31fdfbc4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -12808,7 +12808,7 @@ dependencies = [ [[package]] name = "rollup-boost" version = "0.1.0" -source = "git+http://github.com/flashbots/rollup-boost?tag=v0.7.10#501ae74cf6d93ae4ff0d7454ca7b36827fd1e135" +source = "git+http://github.com/flashbots/rollup-boost?tag=v0.7.11#196237bab2a02298de994b439e0455abb1ac512f" dependencies = [ "alloy-primitives 1.4.1", "alloy-rpc-types-engine", diff --git a/Cargo.toml b/Cargo.toml index 1ae8d3d1..1d00cd0a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -162,7 +162,7 @@ alloy-trie = { version = "0.9.1" } alloy-hardforks = "0.4.4" # rollup-boost -rollup-boost = { git = "http://github.com/flashbots/rollup-boost", tag = "v0.7.10" } +rollup-boost = { git = "http://github.com/flashbots/rollup-boost", tag = "v0.7.11" } # optimism alloy-op-evm = { version = "0.24.1", default-features = false } diff --git a/crates/op-rbuilder/src/builders/flashblocks/payload.rs b/crates/op-rbuilder/src/builders/flashblocks/payload.rs index 02753bf5..cb91116e 100644 --- a/crates/op-rbuilder/src/builders/flashblocks/payload.rs +++ b/crates/op-rbuilder/src/builders/flashblocks/payload.rs @@ -298,7 +298,10 @@ where // We log only every 100th block to reduce usage let span = if cfg!(feature = "telemetry") - && config.parent_header.number % self.config.sampling_ratio == 0 + && config + .parent_header + .number + .is_multiple_of(self.config.sampling_ratio) { span!(Level::INFO, "build_payload") } else { @@ -1127,6 +1130,8 @@ where block_number: ctx.parent().number + 1, }; + let (_, blob_gas_used) = ctx.blob_fields(info); + // Prepare the flashblocks message let fb_payload = FlashblocksPayloadV1 { payload_id: ctx.payload_id(), @@ -1155,6 +1160,7 @@ where transactions: new_transactions_encoded, withdrawals: ctx.withdrawals().cloned().unwrap_or_default().to_vec(), withdrawals_root: withdrawals_root.unwrap_or_default(), + blob_gas_used, }, metadata: serde_json::to_value(&metadata).unwrap_or_default(), };