Skip to content

Commit

Permalink
Fix oracle start block (skip deploy)
Browse files Browse the repository at this point in the history
  • Loading branch information
shanejearley committed Oct 26, 2023
1 parent d5e12e7 commit 29629c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion services/functions/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ void async function () {
if (!handler) throw new Error(`No handler found for event ${event.event}`)
await handler({ args })
if (process.env.USE_LOGS === 'true') {
updateStartBlock('block.log', event.blockNumber)
// Todo check if this possibly misses events
updateStartBlock('block.log', event.blockNumber + 1)
}
}
} catch (error) {
Expand Down
3 changes: 2 additions & 1 deletion services/oracle/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ void async function () {
await depositUpkeepBalanceHandler({ managerConfig })
await handler({ managerConfig, args })
if (process.env.USE_LOGS === 'true') {
updateStartBlock('block.log', event.blockNumber)
// Todo check if this possibly misses events
updateStartBlock('block.log', event.blockNumber + 1)
}
}
} catch (error) {
Expand Down

0 comments on commit 29629c4

Please sign in to comment.