-
-
Notifications
You must be signed in to change notification settings - Fork 290
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
Populate eth1 deposit cache with remote follow distance timed based #4111
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
g11tech
approved these changes
Jun 3, 2022
Performance Report✔️ no performance regression detected Full benchmark results
|
Before this PR Last fetched block timestamp is out of the range we need to correctly vote With this PR Last fetched block is in the range (above counts), so we can correctly vote The dynamic follow distance is ~640, which is a correct guess. Average block times in 44 sec, while the assumed time is 14.
|
wemeetagain
added a commit
that referenced
this pull request
Jun 7, 2022
* v0.38.0 * Populate eth1 deposit cache with remote follow distance timed based (#4111) * Fix HttpClient event handler leak (#4107) Fix leak in signalGlobal event listeners * Add Eth1DepositTracker metrics (#4110) * Add Eth1DepositTracker metrics * Add Eth1DepositTracker metrics * Remove duplicate line * Fix publish stable workflow (#4130) Co-authored-by: harkamal <gajinder@g11.in> Co-authored-by: Lion - dapplion <35266934+dapplion@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
Description
Make ETH1_FOLLOW_DISTANCE dynamic, bounded by spec value config.ETH1_FOLLOW_DISTANCE and ETH_MIN_FOLLOW_DISTANCE.
If the block fetcher detects that the timestamp of the downloaded block differs from the expected value, it will increase or reduce ETH1_FOLLOW_DISTANCE with educated guesses iteratively.
Closes #4109