From 9fb9be5aa158959b7113dcbd15284f0336b307c9 Mon Sep 17 00:00:00 2001 From: Gary Rong Date: Wed, 9 Jul 2025 11:10:18 +0800 Subject: [PATCH] eth/syncer: fix negative wg --- eth/syncer/syncer.go | 1 + 1 file changed, 1 insertion(+) diff --git a/eth/syncer/syncer.go b/eth/syncer/syncer.go index dd3103bca9..34b74e8c70 100644 --- a/eth/syncer/syncer.go +++ b/eth/syncer/syncer.go @@ -145,6 +145,7 @@ func (s *Syncer) run() { // Start launches the synchronization service. func (s *Syncer) Start() error { + s.wg.Add(1) go s.run() if s.target == (common.Hash{}) { return nil