Improve monitoring of timestamp correction and bounding (#13656)

* Include rejuvenated field in Clock parsing

* Expand timestamp-correction logging info
This commit is contained in:
Tyera Eulberg
2020-11-17 14:51:43 -07:00
committed by GitHub
parent 39932d7664
commit 645598e615
2 changed files with 9 additions and 6 deletions

View File

@ -105,6 +105,7 @@ pub enum SysvarAccountType {
pub struct UiClock {
pub slot: Slot,
pub epoch: Epoch,
pub epoch_start_timestamp: UnixTimestamp,
pub leader_schedule_epoch: Epoch,
pub unix_timestamp: UnixTimestamp,
}
@ -114,6 +115,7 @@ impl From<Clock> for UiClock {
Self {
slot: clock.slot,
epoch: clock.epoch,
epoch_start_timestamp: clock.epoch_start_timestamp,
leader_schedule_epoch: clock.leader_schedule_epoch,
unix_timestamp: clock.unix_timestamp,
}