Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions executors/src/eoa/store/atomic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,9 @@ impl SafeRedisTransaction for ResetNoncesTransaction<'_> {
if health.nonce_resets.len() > 5 {
health.nonce_resets.drain(0..health.nonce_resets.len() - 5);
}
// Update nonce movement timestamp since we're resetting to a new chain nonce
health.last_nonce_movement_at = now;
health.last_confirmation_at = now;
Some(serde_json::to_string(&health)?)
} else {
None
Expand Down
17 changes: 17 additions & 0 deletions executors/src/eoa/worker/confirm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,23 @@ impl<C: Chain> EoaExecutorWorker<C> {
)
.await?;

// If we confirmed any transactions, update the health timestamp even if latest hasn't caught up yet
// This handles the case where flashblocks preconfirmed is ahead of latest
if !successes.is_empty() {
// Update health timestamp to reflect nonce movement from confirmations
if let Ok(mut health) = self.get_eoa_health().await {
let now = EoaExecutorStore::now();
health.last_nonce_movement_at = now;
health.last_confirmation_at = now;
if let Err(e) = self.store.update_health_data(&health).await {
tracing::warn!(
error = ?e,
"Failed to update health timestamp after confirming transactions"
);
}
}
}

Ok(report)
}

Expand Down