Use Subgraph & Batched Events #2
@ -141,7 +141,6 @@ const getNullifiers = async (blockFrom) => {
|
||||
blockFrom = lastSyncBlock + numbers.ONE
|
||||
}
|
||||
|
||||
if (!blockTo || blockTo > blockFrom) {
|
||||
let nodeEvents = await self.BatchEventsService.getBatchEvents({
|
||||
fromBlock: blockFrom,
|
||||
type: 'NewNullifier'
|
||||
@ -160,7 +159,6 @@ const getNullifiers = async (blockFrom) => {
|
||||
|
||||
events.push(...nodeEvents)
|
||||
}
|
||||
}
|
||||
|
||||
return events
|
||||
} catch (err) {
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user