Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/primitives.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ pub struct ExecutionPayloadFlashblockDeltaV1 {
pub withdrawals: Vec<Withdrawal>,
/// The withdrawals root of the block.
pub withdrawals_root: B256,
/// The blob gas used
#[serde(
default,
skip_serializing_if = "Option::is_none",
with = "rblib::alloy::serde::quantity::opt"
)]
pub blob_gas_used: Option<u64>,
}

#[derive(Clone, Debug, PartialEq, Default, Deserialize, Serialize)]
Expand Down
4 changes: 3 additions & 1 deletion src/publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use {
parking_lot::RwLock,
rblib::{
alloy::{consensus::BlockHeader, eips::Encodable2718, primitives::U256},
prelude::*,
prelude::{ext::CheckpointOpExt, *},
reth::node::builder::PayloadBuilderAttributes,
},
std::{io, net::TcpListener, sync::Arc, time::Instant},
Expand Down Expand Up @@ -101,6 +101,7 @@ impl Step<Flashblocks> for PublishFlashblock {
// the block_base.
// TODO: Consider moving this into its own step
let base = self.block_base.write().take();
let (_excess_blob_gas, blob_gas_used) = payload.blob_fields();
let diff = ExecutionPayloadFlashblockDeltaV1 {
state_root: sealed_block.block().state_root,
receipts_root: sealed_block.block().receipts_root,
Expand All @@ -113,6 +114,7 @@ impl Step<Flashblocks> for PublishFlashblock {
.block()
.withdrawals_root()
.expect("withdrawals_root is present"),
blob_gas_used,
};

let flashblock_number = payload.context();
Expand Down