-
Notifications
You must be signed in to change notification settings - Fork 214
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
[Merged by Bors] - sync: require stated synced for node to be synced #4934
[Merged by Bors] - sync: require stated synced for node to be synced #4934
Conversation
bors try |
Codecov Report
@@ Coverage Diff @@
## develop #4934 +/- ##
=======================================
Coverage 77.0% 77.1%
=======================================
Files 263 263
Lines 30532 30532
=======================================
+ Hits 23537 23543 +6
+ Misses 5503 5497 -6
Partials 1492 1492
|
tryBuild failed: |
f197226
to
55392a0
Compare
@@ -35,7 +35,8 @@ func minLayer(a, b types.LayerID) types.LayerID { | |||
|
|||
func (s *Syncer) stateSynced() bool { | |||
current := s.ticker.CurrentLayer() | |||
return current.Uint32() <= 1 || !s.mesh.ProcessedLayer().Before(current.Sub(1)) | |||
return current <= types.GetEffectiveGenesis() || | |||
(s.mesh.ProcessedLayer() >= current-1 && !s.stateErr.Load()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a reason why checkMeshAgreement is based on this function instead of synced
state?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed.
55392a0
to
8156e5b
Compare
bors try |
tryBuild failed: |
bors merge |
## Motivation Closes #4931 ## Changes - make sure state is synced before declaring node is synced - reduce gossip sync from 10 min to 2 min - do not print confusing log "failed to build proposal" when node is not synced ## Test - manually synced with mainnet ## TODO - [ ] Update [changelog](../CHANGELOG.md)
bors cancel |
Canceled. |
bors merge |
## Motivation Closes #4931 ## Changes - make sure state is synced before declaring node is synced - reduce gossip sync from 10 min to 2 min - do not print confusing log "failed to build proposal" when node is not synced ## Test - manually synced with mainnet
Build failed: |
bors merge |
## Motivation Closes #4931 ## Changes - make sure state is synced before declaring node is synced - reduce gossip sync from 10 min to 2 min - do not print confusing log "failed to build proposal" when node is not synced ## Test - manually synced with mainnet
Pull request successfully merged into develop. Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page.
|
Motivation
Closes #4931
Changes
Test