Skip to content

Commit

Permalink
bugfix: Updated the doneCh size from 1 to 3
Browse files Browse the repository at this point in the history
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
  • Loading branch information
gameofpointers committed Oct 2, 2023
1 parent 4e87e7f commit b8618ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) }()
}

Expand Down

0 comments on commit b8618ba

Please sign in to comment.