diff --git a/eth_p2p/blockchain_sync.nim b/eth_p2p/blockchain_sync.nim index a7d7d86..4d0f30a 100644 --- a/eth_p2p/blockchain_sync.nim +++ b/eth_p2p/blockchain_sync.nim @@ -288,7 +288,7 @@ proc onPeerConnected(ctx: SyncContext, peer: Peer) = debug "New candidate for sync", peer discard let f = ctx.startSyncWithPeer(peer) - f.callback = proc(data: pointer) = + f.callback = proc(data: pointer) {.gcsafe.} = if f.failed: error "startSyncWithPeer failed", msg = f.readError.msg, peer