From 694c93fa971c86b79ef52a78466c8bd4ea0fb959 Mon Sep 17 00:00:00 2001 From: AlienTornadosaurusHex <> Date: Tue, 4 Jul 2023 17:13:38 +0000 Subject: [PATCH] add timeout for proving key fetch Signed-off-by: AlienTornadosaurusHex <> --- store/snark.js | 1 + 1 file changed, 1 insertion(+) diff --git a/store/snark.js b/store/snark.js index 4540cc8..0542a5b 100644 --- a/store/snark.js +++ b/store/snark.js @@ -55,6 +55,7 @@ async function fetchFile({ url, name, getProgress, id, retryAttempt = 0 }) { headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, + timeout: 10_000, onDownloadProgress: (progressEvent) => { if (typeof getProgress === 'function') { const progress = Math.round((progressEvent.loaded * 100) / 9626311)