sync only via prysm 2

This commit is contained in:
Agnish Ghosh 2024-10-17 18:54:17 +05:30
parent b2bb6ac863
commit a07ef5d654
1 changed files with 2 additions and 0 deletions

View File

@ -710,6 +710,8 @@ proc syncWorker[A, B](man: SyncManager[A, B], index: int) {.async: (raises: [Can
peer = await man.pool.acquire() peer = await man.pool.acquire()
if peer.remoteAgent == Eth2Agent.Prysm: if peer.remoteAgent == Eth2Agent.Prysm:
await man.syncStep(index, peer) await man.syncStep(index, peer)
man.pool.release(peer)
peer = nil
man.pool.release(peer) man.pool.release(peer)
peer = nil peer = nil
finally: finally: