diff --git a/core/src/consensus.rs b/core/src/consensus.rs index ab88fb418fcef9..e256f5ec1d2c7e 100644 --- a/core/src/consensus.rs +++ b/core/src/consensus.rs @@ -430,6 +430,12 @@ impl Tower { } else { // If the previous vote did not send a timestamp due to clock error, // use the last good timestamp + 1 + datapoint_info!( + "refresh-timestamp-missing", + ("heaviest-slot", heaviest_slot_on_same_fork, i64), + ("last-timestamp", self.last_timestamp.timestamp, i64), + ("last-slot", self.last_timestamp.slot, i64), + ); self.last_timestamp.timestamp.saturating_add(1) }; @@ -591,6 +597,13 @@ impl Tower { timestamp, }; return Some(timestamp); + } else { + datapoint_info!( + "backwards-timestamp", + ("slot", current_slot, i64), + ("timestamp", timestamp, i64), + ("last-timestamp", self.last_timestamp.timestamp, i64), + ) } } None