Skip to content

Commit 2b013ad

Browse files
committed
Add cumulative_da_bytes_used accur
1 parent d8e0a3a commit 2b013ad

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

crates/op-rbuilder/src/payload_builder.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,6 +1269,8 @@ where
12691269
// add gas used by the transaction to cumulative gas used, before creating the receipt
12701270
let gas_used = result.gas_used();
12711271
info.cumulative_gas_used += gas_used;
1272+
// record tx da size
1273+
info.cumulative_da_bytes_used += tx_da_size;
12721274

12731275
let ctx = ReceiptBuilderCtx {
12741276
tx: tx.inner(),

crates/op-rbuilder/src/payload_builder_vanilla.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,6 +1208,8 @@ where
12081208
// receipt
12091209
let gas_used = result.gas_used();
12101210
info.cumulative_gas_used += gas_used;
1211+
// record tx da size
1212+
info.cumulative_da_bytes_used += tx_da_size;
12111213

12121214
// Push transaction changeset and calculate header bloom filter for receipt.
12131215
let ctx = ReceiptBuilderCtx {

0 commit comments

Comments
 (0)