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

Make info logs easy to reason about #11

Closed
frol opened this issue Feb 10, 2022 · 0 comments · Fixed by #28
Closed

Make info logs easy to reason about #11

frol opened this issue Feb 10, 2022 · 0 comments · Fixed by #28
Milestone

Comments

@frol
Copy link
Contributor

frol commented Feb 10, 2022

I suggest we print a regular info log as a stats about all the blocks that are currently getting indexed (similarly to how nearcore does it), where we include:

  • List of the block heights that are processed (if there are too many of them [let's say 5], print 4 oldest ones and 1 the most recent)
  • Indexing speed (blocks per second rate)
  • Estimated time to reach the tip of the network (the most recent synced block height - the most recent indexed block height / (indexed blocks per second - synced block per second))

As a note, we can use BTreeSet to maintain the list of currently processed block heights.

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.

1 participant