From 24d1b34d3c9f50850f0636732785fca00043ab1c Mon Sep 17 00:00:00 2001 From: Gianbelinche <39842759+gianbelinche@users.noreply.github.com> Date: Thu, 13 Nov 2025 14:32:52 -0300 Subject: [PATCH 1/2] Revert breaking on budget for privileged txs --- crates/l2/sequencer/block_producer/payload_builder.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/l2/sequencer/block_producer/payload_builder.rs b/crates/l2/sequencer/block_producer/payload_builder.rs index e77148e13d5..5df1cabafb2 100644 --- a/crates/l2/sequencer/block_producer/payload_builder.rs +++ b/crates/l2/sequencer/block_producer/payload_builder.rs @@ -166,7 +166,8 @@ pub async fn fill_transactions( // We break here because if we have expired privileged transactions // in the contract, our batch will be rejected if non-privileged txs // are included. - break; + txs.pop(); + continue; } let id = head_tx.nonce(); if last_privileged_nonce.is_some_and(|last_nonce| id != last_nonce + 1) { From b810d4c119b11a8f750ecfa16e5c372202505721 Mon Sep 17 00:00:00 2001 From: Gianbelinche <39842759+gianbelinche@users.noreply.github.com> Date: Thu, 13 Nov 2025 15:05:51 -0300 Subject: [PATCH 2/2] Remove break comment --- crates/l2/sequencer/block_producer/payload_builder.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/crates/l2/sequencer/block_producer/payload_builder.rs b/crates/l2/sequencer/block_producer/payload_builder.rs index 5df1cabafb2..af3b92e6001 100644 --- a/crates/l2/sequencer/block_producer/payload_builder.rs +++ b/crates/l2/sequencer/block_producer/payload_builder.rs @@ -163,9 +163,6 @@ pub async fn fill_transactions( if head_tx.is_privileged() { if privileged_tx_count >= PRIVILEGED_TX_BUDGET { debug!("Ran out of space for privileged transactions"); - // We break here because if we have expired privileged transactions - // in the contract, our batch will be rejected if non-privileged txs - // are included. txs.pop(); continue; }