Compare commits

...

3 Commits

Author SHA1 Message Date
AlienTornadosaurusHex
e508bf3b5d Merge branch 'master' into add-timeout 2023-07-04 18:25:08 +00:00
AlienTornadosaurusHex
5398b80d82 Merge branch 'master' into add-timeout 2023-07-04 18:20:55 +00:00
AlienTornadosaurusHex
694c93fa97 add timeout for proving key fetch
Signed-off-by: AlienTornadosaurusHex <>
2023-07-04 17:13:38 +00:00

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)