From a07ef5d654efcd5c8732eade1eb13af93d0a8b87 Mon Sep 17 00:00:00 2001 From: Agnish Ghosh Date: Thu, 17 Oct 2024 18:54:17 +0530 Subject: [PATCH] sync only via prysm 2 --- beacon_chain/sync/sync_manager.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/beacon_chain/sync/sync_manager.nim b/beacon_chain/sync/sync_manager.nim index ed4db6c43..3c8bbe9de 100644 --- a/beacon_chain/sync/sync_manager.nim +++ b/beacon_chain/sync/sync_manager.nim @@ -710,6 +710,8 @@ proc syncWorker[A, B](man: SyncManager[A, B], index: int) {.async: (raises: [Can peer = await man.pool.acquire() if peer.remoteAgent == Eth2Agent.Prysm: await man.syncStep(index, peer) + man.pool.release(peer) + peer = nil man.pool.release(peer) peer = nil finally: