Add zero event direct to target block
This commit is contained in:
parent
28e831802f
commit
2151b8c562
2
cli.js
2
cli.js
|
@ -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');
|
||||||
|
|
Loading…
Reference in New Issue