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

bugfixes from testing #1176

Closed
wants to merge 7 commits into from
Prev Previous commit
Next Next commit
bugfix: Updated the doneCh size from 1 to 3
Thorough the testnet the downloader seems to have been blocked, so increasing
this so that we don't stop the downloader completely if the doneCh is blocked
gameofpointers committed Oct 3, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit ecfdf1c5c097ac8d7bba171c3fb8974b445f4553
2 changes: 1 addition & 1 deletion eth/sync.go
Original file line number Diff line number Diff line change
@@ -260,7 +260,7 @@ func (cs *chainSyncer) modeAndLocalHead() (downloader.SyncMode, *big.Int) {

// startSync launches doSync in a new goroutine.
func (cs *chainSyncer) startSync(op *chainSyncOp) {
cs.doneCh = make(chan error, 1)
cs.doneCh = make(chan error, 3)
go func() { cs.doneCh <- cs.handler.doSync(op) }()
}