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

NOTICKET: improving reorgs module #17

Merged

Conversation

moldis
Copy link
Contributor

@moldis moldis commented May 30, 2023

This PR improving:

Reorg scanner is very basic and it does not have a concept of a "deep" reorg (deeper than 1 block). For such situations, it will just show the consecutive block numbers as all having a reorg. It would be better to aggregate these into deep reorgs, and also perhaps show if there are more than 1 branch at each reorg point.

TLTR:

  • Separated UI calls from main code calls
  • Added unit tests for reorgs (positive tests only, there is room to add more negative tests)
  • Improved algo to scan duplicated over 1000 records (previously it was simply next line scan)

@AlexeyAkhunov
Copy link
Contributor

Thank for the PR! Would you be able to update it, I have merged a PR with large refactoring

@moldis
Copy link
Contributor Author

moldis commented May 31, 2023

@AlexeyAkhunov synced!

@AlexeyAkhunov
Copy link
Contributor

Thank you! Could you merge the latest main, I have fixed CI errors there

@moldis
Copy link
Contributor Author

moldis commented Jun 1, 2023

@AlexeyAkhunov it should be synced now.

@AlexeyAkhunov
Copy link
Contributor

Thank you, I will merge it as is, will review/test later. Will also contact you by email (I've got your email)

@AlexeyAkhunov AlexeyAkhunov merged commit 3095a71 into erigontech:main Jun 1, 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