Skip to content

Commit c962068

Browse files
authored
fix(batcher): rename max_block_interval to min_block_interval (#1499)
1 parent f6c5d52 commit c962068

File tree

1 file changed

+4
-4
lines changed
  • batcher/aligned-batcher/src

1 file changed

+4
-4
lines changed

batcher/aligned-batcher/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pub struct Batcher {
8181
service_manager: ServiceManager,
8282
service_manager_fallback: ServiceManager,
8383
batch_state: Mutex<BatchState>,
84-
max_block_interval: u64,
84+
min_block_interval: u64,
8585
transaction_wait_timeout: u64,
8686
max_proof_size: usize,
8787
max_batch_byte_size: usize,
@@ -244,7 +244,7 @@ impl Batcher {
244244
payment_service_fallback,
245245
service_manager,
246246
service_manager_fallback,
247-
max_block_interval: config.batcher.block_interval,
247+
min_block_interval: config.batcher.block_interval,
248248
transaction_wait_timeout: config.batcher.transaction_wait_timeout,
249249
max_proof_size: config.batcher.max_proof_size,
250250
max_batch_byte_size: config.batcher.max_batch_byte_size,
@@ -1132,9 +1132,9 @@ impl Batcher {
11321132
return None;
11331133
}
11341134

1135-
if block_number < *last_uploaded_batch_block_lock + self.max_block_interval {
1135+
if block_number < *last_uploaded_batch_block_lock + self.min_block_interval {
11361136
info!(
1137-
"Current batch not ready to be posted. Minimium amount of {} blocks have not passed. Block passed: {}", self.max_block_interval,
1137+
"Current batch not ready to be posted. Minimium amount of {} blocks have not passed. Block passed: {}", self.min_block_interval,
11381138
block_number - *last_uploaded_batch_block_lock,
11391139
);
11401140
return None;

0 commit comments

Comments
 (0)