Skip to content
This repository was archived by the owner on Jan 12, 2026. It is now read-only.

Commit 8c7ab63

Browse files
committed
add is empty
1 parent 75f0fb3 commit 8c7ab63

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

crates/op-rbuilder/src/bundles.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ impl BackrunBundleStore {
5151
}
5252

5353
pub fn insert(&self, bundle: AcceptedBundle) -> Result<(), String> {
54+
55+
warn!("Inserting backrun bundle for tx:");
56+
5457
if bundle.txs.len() < 2 {
5558
return Err("Bundle must have at least 2 transactions (target + backrun)".to_string());
5659
}
@@ -83,8 +86,10 @@ impl BackrunBundleStore {
8386
entry.insert(backrun_sender, stored_bundle).is_some()
8487
}; // entry lock released here
8588

89+
warn!("Replaced: {}", replaced);
90+
8691
if replaced {
87-
info!(
92+
warn!(
8893
target: "backrun_bundles",
8994
target_tx = ?target_tx_hash,
9095
sender = ?backrun_sender,
@@ -125,6 +130,10 @@ impl BackrunBundleStore {
125130
pub fn len(&self) -> usize {
126131
self.data.by_target_tx.len()
127132
}
133+
134+
pub fn is_empty(&self) -> bool {
135+
self.data.by_target_tx.is_empty()
136+
}
128137
}
129138

130139
impl Default for BackrunBundleStore {

0 commit comments

Comments
 (0)