File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -157,11 +157,11 @@ pub struct BuilderConfig {
157157
158158 /// Number of seconds before the end of the slot to stop querying for new blocks
159159 #[ from_env(
160- var = "BLOCK_QUERY_CUTOFF_SECS " ,
160+ var = "BLOCK_QUERY_CUTOFF_BUFFER " ,
161161 desc = "Number of seconds before the end of the slot to stop querying for new blocks" ,
162162 default = 2
163163 ) ]
164- pub block_query_cutoff_secs : u64 ,
164+ pub block_query_cutoff_buffer : u64 ,
165165
166166 /// The slot calculator for the builder.
167167 pub slot_calculator : SlotCalculator ,
Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ impl Simulator {
254254 // remaining, we need to subtract it from the slot duration
255255 // we also subtract 3 seconds to account for the sequencer stopping signing.
256256 let remaining = ( self . slot_calculator ( ) . slot_duration ( ) - timepoint)
257- . saturating_sub ( self . config . block_query_cutoff_secs ) ;
257+ . saturating_sub ( self . config . block_query_cutoff_buffer ) ;
258258
259259 let deadline = Instant :: now ( ) + Duration :: from_secs ( remaining) ;
260260 deadline. max ( Instant :: now ( ) )
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ pub fn setup_test_config() -> Result<BuilderConfig> {
5353 1740681556 , // pecorino start timestamp as sane default
5454 0 , 1 ,
5555 ) ,
56- block_query_cutoff_secs : 2 ,
56+ block_query_cutoff_buffer : 2 ,
5757 max_host_gas_coefficient : Some ( 80 ) ,
5858 constants : SignetSystemConstants :: pecorino ( ) ,
5959 } ;
You can’t perform that action at this time.
0 commit comments