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
11 changes: 11 additions & 0 deletions crates/op-rbuilder/src/builders/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,17 @@ impl OpPayloadBuilderCtx {
let tx_da_limit = self.da_config.max_da_tx_size();
let mut evm = self.evm_config.evm_with_env(&mut *db, self.evm_env.clone());

info!(target: "payload_builder", block_da_limit = ?block_da_limit, tx_da_size = ?tx_da_limit, block_gas_limit = ?block_gas_limit, "DA limits");

// Remove once we merge Reth 1.4.4
// Fixed in https://github.com/paradigmxyz/reth/pull/16514
self.metrics
.da_block_size_limit
.record(block_da_limit.map_or(-1.0, |v| v as f64));
self.metrics
.da_tx_size_limit
.record(tx_da_limit.map_or(-1.0, |v| v as f64));

while let Some(tx) = best_txs.next(()) {
let exclude_reverting_txs = tx.exclude_reverting_txs();
let tx_da_size = tx.estimated_da_size();
Expand Down
4 changes: 4 additions & 0 deletions crates/op-rbuilder/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ pub struct OpRBuilderMetrics {
pub tx_simulation_duration: Histogram,
/// Byte size of transactions
pub tx_byte_size: Histogram,
/// Da block size limit
pub da_block_size_limit: Histogram,
/// Da tx size limit
pub da_tx_size_limit: Histogram,
}

/// Contains version information for the application.
Expand Down
Loading