You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: script/bin/operator.rs
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -221,7 +221,7 @@ where
221
221
///
222
222
/// # Errors
223
223
/// - If any errors occur while making the batch proof.
224
-
asyncfnrun(self:Arc<Self>) -> Result<()>{
224
+
asyncfnrun_inner(self:Arc<Self>) -> Result<()>{
225
225
let data_commitment_max = self.check_contracts().await?;
226
226
227
227
// How often new tendermint blocks are created.
@@ -276,7 +276,7 @@ where
276
276
continue;
277
277
}
278
278
279
-
// If the `block_to_request` doesn't have enough overlapping validators with the `last_known_block`, the `block_to_request` needs to be reduced to a block where the validators have enough overlap.
279
+
// Blocks may be skipped if they dont meet consensus thresholds.
// Errors either occur when creating proofs or when relaying proofs.
317
317
//
318
-
// In either case, return an error. In the outer loop, the operator will not "sleep" for the loop interval if there was an error and will retry immediately.
318
+
// In either case, indicate that the operator should retry sooner.
319
319
letmut has_err = false;
320
320
for batch_result in results {
321
321
match batch_result {
@@ -345,7 +345,7 @@ where
345
345
}
346
346
347
347
/// Run the operator, indefinitely.
348
-
asyncfnloop(self){
348
+
asyncfnrun(self){
349
349
let this = Arc::new(self);
350
350
351
351
tracing::info!("Operator running with chains {:?}", this.contracts.keys());
0 commit comments