From 53d039a1f2091c229eca93b1d0b38173541c8c80 Mon Sep 17 00:00:00 2001 From: gop <gameofpointers@proton.me> Date: Mon, 2 Oct 2023 11:33:54 -0500 Subject: [PATCH] bugfix: Updated the doneCh size from 1 to 3 --- 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) }() }