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

Better re-org log #11253

Merged
merged 4 commits into from Aug 18, 2022
Merged

Better re-org log #11253

merged 4 commits into from Aug 18, 2022

Conversation

terencechain
Copy link
Member

The current log could use more color. I propose we add

  • the new head root
  • the old head root
  • the common ancestor root
  • bump verbosity from debug to info. Afaik most CL clients have this info, Geth also has this in info or warn

@terencechain terencechain added Ready For Review A pull request ready for code review UX cosmetic / user experience related labels Aug 17, 2022
@terencechain terencechain self-assigned this Aug 17, 2022
@terencechain terencechain requested a review from a team as a code owner August 17, 2022 22:12
Copy link
Member

@nisdas nisdas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests fail @terencechain

Comment on lines +105 to +106
log.WithError(err).Error("Could not find common ancestor root")
commonRoot = params.BeaconConfig().ZeroHash
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Common ancestor root is only used for logging below, I think we can be more forgiving, if it fails just log it and assign root to zeros. Don't need to fail the entire process block routine

@prylabs-bulldozer prylabs-bulldozer bot merged commit 3b38765 into develop Aug 18, 2022
@delete-merged-branch delete-merged-branch bot deleted the better-reorg-log branch August 18, 2022 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review UX cosmetic / user experience related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants