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,16 +51,10 @@ pub struct OpRbuilderArgs {
5151 /// Whether to enable TIPS Resource Metering
5252 #[ arg( long = "builder.enable-resource-metering" , default_value = "false" ) ]
5353 pub enable_resource_metering : bool ,
54- /// Whether to enable TIPS Resource Metering
55- #[ arg(
56- long = "builder.resource-metering-buffer-size" ,
57- default_value = "10000"
58- ) ]
59- pub resource_metering_buffer_size : usize ,
6054
61- /// Buffer size for backrun bundles (LRU eviction when full)
62- #[ arg( long = "builder.backrun-bundle -buffer-size" , default_value = "10000" ) ]
63- pub backrun_bundle_buffer_size : usize ,
55+ /// Buffer size for tx data store (LRU eviction when full)
56+ #[ arg( long = "builder.tx-data-store -buffer-size" , default_value = "10000" ) ]
57+ pub tx_data_store_buffer_size : usize ,
6458
6559 /// Path to builder playgorund to automatically start up the node connected to it
6660 #[ arg(
Original file line number Diff line number Diff line change @@ -196,8 +196,7 @@ where
196196 gas_limiter_config : args. gas_limiter . clone ( ) ,
197197 tx_data_store : TxDataStore :: new (
198198 args. enable_resource_metering ,
199- args. resource_metering_buffer_size
200- . max ( args. backrun_bundle_buffer_size ) ,
199+ args. tx_data_store_buffer_size ,
201200 ) ,
202201 specific : S :: try_from ( args) ?,
203202 } )
Original file line number Diff line number Diff line change @@ -71,15 +71,15 @@ impl TxDataStore {
7171 }
7272
7373 fn evict_if_needed ( & self ) {
74- if self . data . lru . is_full ( ) {
75- if let Ok ( evicted_hash) = self . data . lru . pop ( ) {
76- self . data . by_tx_hash . remove ( & evicted_hash ) ;
77- debug ! (
78- target : "tx_data_store" ,
79- evicted_tx = ?evicted_hash ,
80- "Evicted old transaction data"
81- ) ;
82- }
74+ if self . data . lru . is_full ( )
75+ && let Ok ( evicted_hash) = self . data . lru . pop ( )
76+ {
77+ self . data . by_tx_hash . remove ( & evicted_hash ) ;
78+ debug ! (
79+ target : "tx_data_store" ,
80+ evicted_tx = ?evicted_hash ,
81+ "Evicted old transaction data"
82+ ) ;
8383 }
8484 }
8585
You can’t perform that action at this time.
0 commit comments