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

Use forkchoice to validate sync messages faster #12430

Merged
merged 2 commits into from May 19, 2023
Merged

Conversation

potuz
Copy link
Contributor

@potuz potuz commented May 19, 2023

This PR caches the blockroot of the votes for fast access and uses forkchoice to check that it matches the headroot (that is also cached in the blockchain package)

@potuz potuz requested a review from a team as a code owner May 19, 2023 14:01
@potuz potuz requested review from kasey, saolyn and rkapka May 19, 2023 14:01
@prylabs-bulldozer prylabs-bulldozer bot merged commit b84dd40 into develop May 19, 2023
15 of 16 checks passed
@prylabs-bulldozer prylabs-bulldozer bot deleted the sync-metrics branch May 19, 2023 14:47
// Sync committee verification performance.
syncMessagesForUnkownBlocks = promauto.NewCounter(
prometheus.CounterOpts{
Name: "sync_committee_messages_unnkown_root",
Copy link
Member

Choose a reason for hiding this comment

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

typo here: It should be sync_committee_messages_unknown_root

Copy link
Member

Choose a reason for hiding this comment

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

Fixed in #12445

prestonvanloon added a commit that referenced this pull request May 22, 2023
prylabs-bulldozer bot added a commit that referenced this pull request May 22, 2023
* Fix metric name from PR #12430

* @potuz can't spell 'unknown'

---------

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
prestonvanloon added a commit that referenced this pull request May 22, 2023
* Fix metric name from PR #12430

* @potuz can't spell 'unknown'

---------

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
(cherry picked from commit 7fe935e)
james-prysm pushed a commit that referenced this pull request May 23, 2023
* Fix metric name from PR #12430

* @potuz can't spell 'unknown'

---------

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
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.

None yet

3 participants