Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: Add time/date approximation to the versions displayed EoS blockheight #9320

Open
autotunafish opened this issue Mar 10, 2025 · 0 comments
Labels
C-enhancement Category: This is an improvement S-needs-triage Status: A bug report needs triage

Comments

@autotunafish
Copy link

Motivation

It would be nice if zebra displayed a human-readable time or date that coincides with the EoS halt blockheight. This would make it easier for a node operator to be aware of node version update timelines.

Specifications

This is not consensus dependent.

Complex Code or Requirements

The easiest way would be to do a single calculation and just include it statically. This would be least accurate as it would be done some time before that version release is cut and some weeks before the previous version expires (though typically it's not too far off, even at long times in advance).
It could be calculated dynamically; at least initially at startup and optionally re-calculated at some increment, perhaps daily (I think there's room here to play with warning levels, too like 10 days yellow, 5 days red, 1 day blinking! idk). The calculation will likely need to use the block unix timestamps and system time to derive a time/date format.

Testing

Block times vary but currently target 75 seconds. X-checking the time spans doesn't necessarily increase accuracy (it's inherently an estimate) but deriving the seconds remaining, dividing by 60's and 24 and finding that date should never fail.

Related Work

idts!

@autotunafish autotunafish added C-enhancement Category: This is an improvement S-needs-triage Status: A bug report needs triage labels Mar 10, 2025
@github-project-automation github-project-automation bot moved this to New in Zebra Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: This is an improvement S-needs-triage Status: A bug report needs triage
Projects
Status: New
Development

No branches or pull requests

1 participant