Skip to content

Commit a46a06b

Browse files
committed
updated cross chain script retry limit
1 parent f767542 commit a46a06b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

helpers/contracts.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ const filterContractEvents = async (
196196
let logs = [];
197197
for (let i = startBlock; i <= endBlock; i += freq) {
198198
console.log(startBlock, endBlock, i, logs.length);
199-
const getLogs = async (tries = 10) => {
199+
const getLogs = async (tries = 25) => {
200200
if (tries == 0) {
201201
throw 'Max tries reached';
202202
}
@@ -211,7 +211,7 @@ const filterContractEvents = async (
211211
return r;
212212
} catch (e) {
213213
console.log('Failed', e);
214-
await sleep(10 - tries);
214+
await sleep(25 - tries);
215215
return getLogs(tries - 1);
216216
}
217217
};

0 commit comments

Comments
 (0)