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

Blocknumber - timestamp #17

Open
fosgate29 opened this issue Aug 20, 2020 · 2 comments
Open

Blocknumber - timestamp #17

fosgate29 opened this issue Aug 20, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@fosgate29
Copy link

I was wondering if there is a way to return the blocknumber if I pass future time, like query blocknumber in 8 weeks and it will return to me approximetly the blocknumber in 8 weeks. For example, if blocknumber now is 10699412 it will return 10699412 + 161280. ps: 161280 = (8weeks * 7days * 24h * 60min * 60s) / 30s.

@shayanb
Copy link
Contributor

shayanb commented Aug 21, 2020

Hi @fosgate29 , interesting feature, it is trivial to implement such feature. However, what would be the use case for this functionality?

@shayanb shayanb added the enhancement New feature or request label Aug 21, 2020
@fosgate29
Copy link
Author

Hi @shayanb . Well, it would be basically used to help in an unit test. In the past I wrote some tests that I needed a future block number to check some conditions. When I needed I thought to create a simple script to do the job, but I never did. When I saw Legions and it asked for some features, I thought it could be useful. To be honest I needed just once.

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

No branches or pull requests

2 participants