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

Can't tell what day the cluster thinks it is #9847

Closed
garious opened this issue May 1, 2020 · 1 comment · Fixed by #9878
Closed

Can't tell what day the cluster thinks it is #9847

garious opened this issue May 1, 2020 · 1 comment · Fixed by #9878
Milestone

Comments

@garious
Copy link
Contributor

garious commented May 1, 2020

Problem

The cluster calculates the date as a function of slots from genesis, and it uses that date to determine if a stake account is locked. If we want to set an unlock for something like "one day from now", there's no RPC endpoint to ask the cluster what it thinks "now" is.

Proposed Solution

Add solana cluster-date that returns the date and time from sysvar::Clock.unix_timestamp in the RFC3339 format.

@garious garious added this to the v1.2.0 milestone May 1, 2020
@mvines
Copy link
Member

mvines commented May 2, 2020

Along the way, I think it would be nice if solana block-time (with no provided slot) just returned the block time of the most recently root slot. That'll then nicely point out how we have two different sources of truth for elapsed wall clock time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants