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

Add sync stages diagnostic script #13

Merged
merged 16 commits into from
May 15, 2023

Conversation

acuderman
Copy link
Contributor

@acuderman acuderman commented May 10, 2023

What is this PR for?

  • Adds syncs stage section to the diagnostics service which fetches status from a remote database "chaindata" (table "SyncStage"). Data is decoded to utf-8 / number and shown in the table
  • DB path extraction logic was moved in order to reuse it in multiple handlers
  • "fetch" method moved to a separate struct (together with some added remote API-related helper methods)
  • Tests added for the newly added code (and some of the existing functions)

@acuderman acuderman marked this pull request as ready for review May 13, 2023 07:51
@AlexeyAkhunov
Copy link
Contributor

Great PR, thank you, will check further and merge soon, and contact you

@AlexeyAkhunov AlexeyAkhunov merged commit 7fe89fd into erigontech:main May 15, 2023
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 this pull request may close these issues.

2 participants