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

Add WaitForSynced to beacon node for validator startup #5366

Merged
merged 10 commits into from
Apr 18, 2020

Conversation

0xKiwi
Copy link
Contributor

@0xKiwi 0xKiwi commented Apr 9, 2020

Resolves #5345 by reducing WaitForChainstart and WaitForSync to WaitForSynced, also making the validator startup more reliable. as previously the beacon node was not ready when the validator made requests to it.

Confirmed in runtime:
Old Startup:

time="2020-04-16 19:40:42" msg="Beacon node is ready 2.852288s after chainstart"
time="2020-04-16 19:40:42" msg="Activations received 2.853108s after chainstart"

New Startup:

time="2020-04-16 19:48:10" msg="Beacon node is ready 45.511ms after chain start"
time="2020-04-16 19:48:10" msg="Activations received 78.148ms after chainstart"

@0xKiwi 0xKiwi requested a review from a team as a code owner April 9, 2020 20:14
@Nessa-G22 Nessa-G22 mentioned this pull request Apr 10, 2020
Copy link
Member

@prestonvanloon prestonvanloon left a comment

Choose a reason for hiding this comment

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

Please split gRPC client and server changes into two different PRs

@0xKiwi 0xKiwi added the Ready For Review A pull request ready for code review label Apr 16, 2020
@0xKiwi 0xKiwi changed the title Simplify validator startup Add WaitForSynced to beacon node for validator startup Apr 16, 2020
@prestonvanloon
Copy link
Member

Please wait to merge new features until after Topaz

@0xKiwi 0xKiwi added Blocked Blocked by research or external factors and removed OK to merge labels Apr 16, 2020
@prestonvanloon prestonvanloon added OK to merge and removed Blocked Blocked by research or external factors labels Apr 16, 2020
@codecov
Copy link

codecov bot commented Apr 18, 2020

Codecov Report

Merging #5366 into master will increase coverage by 3.95%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #5366      +/-   ##
==========================================
+ Coverage   40.82%   44.77%   +3.95%     
==========================================
  Files         237      237              
  Lines       20158    20864     +706     
==========================================
+ Hits         8229     9342    +1113     
+ Misses      10414     9861     -553     
- Partials     1515     1661     +146     

@prylabs-bulldozer prylabs-bulldozer bot merged commit 1224e75 into prysmaticlabs:master Apr 18, 2020
terencechain added a commit that referenced this pull request Apr 18, 2020
terencechain added a commit that referenced this pull request Apr 18, 2020
prylabs-bulldozer bot pushed a commit that referenced this pull request Apr 18, 2020
* Revert "Add WaitForSynced to beacon node for validator startup (#5366)"

This reverts commit 1224e75.
* Disable various checks in block validator sync without new state mgmt
* Revert "Revert "Add WaitForSynced to beacon node for validator startup (#5366)""

This reverts commit 927d8d9.
* Invert
terencechain added a commit that referenced this pull request Apr 18, 2020
prylabs-bulldozer bot pushed a commit that referenced this pull request Apr 18, 2020
* Revert "Add WaitForSynced to beacon node for validator startup (#5366)"

This reverts commit 1224e75.
* Merge branch 'master' of github.com:prysmaticlabs/prysm
* Revert "Add Separate Network Config (#5454)"

This reverts commit 28733f2.
* Save blocks to db before generating state
* Revert "Revert "Add Separate Network Config (#5454)""

This reverts commit d43c2b7.
* Revert "Revert "Add WaitForSynced to beacon node for validator startup (#5366)""

This reverts commit 927d8d9.
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simplify validator startup checks to wait for beacon node synced
5 participants