This repository was archived by the owner on Jan 12, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
130139impl Default for BackrunBundleStore {
You can’t perform that action at this time.
0 commit comments