We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab408ff commit b8c9603Copy full SHA for b8c9603
rpc-server/src/utils.rs
@@ -234,9 +234,9 @@ async fn task_update_optimistic_block_regularly(
234
async fn task_optimistic_block_status() {
235
tracing::info!("Task to check optimistic block status started");
236
loop {
237
- // check every 2 seconds
238
- tokio::time::sleep(std::time::Duration::from_secs(2)).await;
239
-
+ // check every second
+ tokio::time::sleep(std::time::Duration::from_secs(1)).await;
+
240
// When an optimistic block is not updated, or it is lower than the final block
241
// we need to mark that optimistic updating is not working
242
if crate::metrics::LATEST_BLOCK_HEIGHT_BY_FINALITIY
0 commit comments