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

Create a hook to provide the latest block information #4507

Closed
Tracked by #4034
reyraa opened this issue Oct 11, 2022 · 0 comments · Fixed by #4607
Closed
Tracked by #4034

Create a hook to provide the latest block information #4507

reyraa opened this issue Oct 11, 2022 · 0 comments · Fixed by #4607
Assignees
Milestone

Comments

@reyraa
Copy link
Contributor

reyraa commented Oct 11, 2022

Description

The latest block information is used in a few calculations including the estimation of the unlocking times.
We need a hook to fetch the latest block info, and keep it updated.

Acceptance criteria

  • The hook should fetch the latest block and return the value
  • It should update the data at least every 10 sec
  • The functionality must be tested using unit tests
  • Use the above hook in the Unlocking Form component
  • BlockDetails needs to adopt with this hook in order to get currentHeight latestBlocks.height
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

3 participants