From b8618baedc944d9888de280305fac18e2100216a Mon Sep 17 00:00:00 2001 From: gop Date: Mon, 2 Oct 2023 11:33:54 -0500 Subject: [PATCH] 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 --- eth/sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/sync.go b/eth/sync.go index 29c04704a0..dc82e25cf2 100644 --- a/eth/sync.go +++ b/eth/sync.go @@ -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) }() }