Skip to content
Merged
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
19 changes: 19 additions & 0 deletions executors/src/eoa/store/atomic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,18 @@ impl AtomicEoaExecutorStore {
let health_update = if let Some(mut health) = current_health {
health.last_nonce_movement_at = now;
health.last_confirmation_at = now;

tracing::info!(
current_chain_tx_count = current_chain_tx_count,
"Updated health data with last nonce movement at {now}"
);

Some(serde_json::to_string(&health)?)
} else {
tracing::info!(
current_chain_tx_count = current_chain_tx_count,
"No health data found, initializing with fresh data"
);
None
};

Expand Down Expand Up @@ -464,6 +474,15 @@ impl AtomicEoaExecutorStore {
if let Some(ref health_json) = health_update {
let health_key = self.eoa_health_key_name();
pipeline.set(&health_key, health_json);
tracing::info!(
current_chain_tx_count = current_chain_tx_count,
"Updated health data with last nonce movement at {now}"
);
} else {
tracing::info!(
current_chain_tx_count = current_chain_tx_count,
"No health data found, skipping health data update"
);
}
})
.await
Expand Down