We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f767542 commit a46a06bCopy full SHA for a46a06b
helpers/contracts.js
@@ -196,7 +196,7 @@ const filterContractEvents = async (
196
let logs = [];
197
for (let i = startBlock; i <= endBlock; i += freq) {
198
console.log(startBlock, endBlock, i, logs.length);
199
- const getLogs = async (tries = 10) => {
+ const getLogs = async (tries = 25) => {
200
if (tries == 0) {
201
throw 'Max tries reached';
202
}
@@ -211,7 +211,7 @@ const filterContractEvents = async (
211
return r;
212
} catch (e) {
213
console.log('Failed', e);
214
- await sleep(10 - tries);
+ await sleep(25 - tries);
215
return getLogs(tries - 1);
216
217
};
0 commit comments