Add zero event direct to target block

This commit is contained in:
Theodike 2023-04-14 23:19:33 +03:00
parent 28e831802f
commit 2151b8c562

2
cli.js
View File

@ -1038,7 +1038,7 @@ async function fetchEvents({ type, currency, amount, filterEvents }) {
await updateCache(fetchedEvents); await updateCache(fetchedEvents);
} }
await addZeroEvent(targetBlock - 1); await addZeroEvent(targetBlock);
} catch (error) { } catch (error) {
console.log(error); console.log(error);
throw new Error('Error while updating cache'); throw new Error('Error while updating cache');