add timeout for proving key fetch

Signed-off-by: AlienTornadosaurusHex <>
This commit is contained in:
AlienTornadosaurusHex 2023-07-04 17:13:38 +00:00
parent 02f79a0de0
commit 694c93fa97

View File

@ -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)