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

Monitor blocks #9910

Merged
merged 6 commits into from
Nov 22, 2021
Merged

Monitor blocks #9910

merged 6 commits into from
Nov 22, 2021

Conversation

potuz
Copy link
Contributor

@potuz potuz commented Nov 16, 2021

This is the 5th PR for the validator monitor, in this PR we include logging and metrics for block proposals as well as triggering the logs for slashings/exits/etc that were already merged in previous PRs.

beacon-chain/monitor/metrics.go Outdated Show resolved Hide resolved
beacon-chain/monitor/process_block.go Outdated Show resolved Hide resolved
beacon-chain/monitor/process_block.go Outdated Show resolved Hide resolved
}
state := s.config.StateGen.StateByRootIfCachedNoCopy(root)
if state == nil {
log.Debug("Skipping block due to state not found in cache")
Copy link
Member

Choose a reason for hiding this comment

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

I think log should be more descriptive. Seeing Skipping block due to state not found in cache over the console without knowing what feature this is could be useless

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the message would come prefixed by the monitor service. Do you want me to add a longer message?

beacon-chain/monitor/process_block.go Outdated Show resolved Hide resolved
@potuz potuz merged commit d4a420d into develop Nov 22, 2021
@delete-merged-branch delete-merged-branch bot deleted the monitor_blocks branch November 22, 2021 21:20
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