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

Fixing Sync #1830

Merged
merged 7 commits into from
Mar 3, 2019
Merged

Fixing Sync #1830

merged 7 commits into from
Mar 3, 2019

Conversation

nisdas
Copy link
Member

@nisdas nisdas commented Mar 3, 2019

Description

Write why you are making the changes in this pull request.

Sync stalls at runtime, this PR is to fix any bugs for it.

Write a summary of the changes you are making.

  • Modify Querier to handle cases in where nodes which have no state and chainstart has already occured.
  • Broadcast processed blocks from a node through regular sync.

@nisdas nisdas added Ready For Review A pull request ready for code review and removed In Progress labels Mar 3, 2019
@nisdas nisdas self-assigned this Mar 3, 2019
@codecov
Copy link

codecov bot commented Mar 3, 2019

Codecov Report

Merging #1830 into master will decrease coverage by 0.34%.
The diff coverage is 37.83%.

@@            Coverage Diff             @@
##           master    #1830      +/-   ##
==========================================
- Coverage   71.69%   71.35%   -0.35%     
==========================================
  Files         104      104              
  Lines        7341     7372      +31     
==========================================
- Hits         5263     5260       -3     
- Misses       1590     1621      +31     
- Partials      488      491       +3

@rauljordan rauljordan merged commit fe2eb5a into prysmaticlabs:master Mar 3, 2019
@@ -165,7 +165,7 @@ var defaultBeaconConfig = &BeaconChainConfig{
DepositsForChainStart: 16384,
RandBytes: 3,
SyncPollingInterval: 6 * 1, // Query nodes over the network every slot for sync status.
BatchBlockLimit: 100,
BatchBlockLimit: 50,
Copy link
Member

Choose a reason for hiding this comment

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

why changed it to 50?

Copy link
Member Author

Choose a reason for hiding this comment

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

This was just a param I was testing with to get sync to work. We can change it back

@@ -62,6 +62,7 @@ func NewSyncService(ctx context.Context, cfg *Config) *Service {

// Start kicks off the sync service
func (ss *Service) Start() {
slog.Info("Starting Sync Service")
Copy link
Member

Choose a reason for hiding this comment

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

We can just log Starting service here, sync is redundant with field

@nisdas nisdas deleted the fixingSync branch March 4, 2019 02:44
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.

3 participants