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 2335d10 commit 8039636Copy full SHA for 8039636
src/mainnet/processors/protocol/protocol-sql-simple.ts
@@ -10,8 +10,8 @@ export const protocolSqlSimpleProcessor = defineProcessor({
10
processor.includeAllBlocks({ from: 15000000 })
11
},
12
process: async (ctx: Context) => {
13
- // Update once every ~5 minutes.
14
- if (ctx.blocks.find((b) => b.header.height % 25 === 0)) {
+ // Update at head once every ~10 minutes.
+ if (ctx.isHead && ctx.blocks.find((b) => b.header.height % 50 === 0)) {
15
const minDate = startDate
16
await upsertProtocolDailyStatDetails(ctx, minDate)
17
await upsertProtocolDailyStats(ctx, minDate)
0 commit comments