File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
cardano-db-sync/src/Cardano/DbSync Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -376,10 +376,10 @@ mkSyncEnv trce backend connectionString syncOptions protoInfo nw nwMagic systemS
376
376
bts <- getBootstrapInProgress trce (enpBootstrap syncNP) backend
377
377
bootstrapVar <- newTVarIO bts
378
378
-- Offline Pool + Anchor queues
379
- opwq <- newTBQueueIO 100
380
- oprq <- newTBQueueIO 100
381
- oawq <- newTBQueueIO 100
382
- oarq <- newTBQueueIO 100
379
+ opwq <- newTBQueueIO 1000
380
+ oprq <- newTBQueueIO 1000
381
+ oawq <- newTBQueueIO 1000
382
+ oarq <- newTBQueueIO 1000
383
383
epochVar <- newTVarIO initEpochState
384
384
epochSyncTime <- newTVarIO =<< getCurrentTime
385
385
ledgerEnvType <-
Original file line number Diff line number Diff line change @@ -197,11 +197,11 @@ insertShelleyBlock syncEnv shouldLog withinTwoMins withinHalfHour blk details is
197
197
198
198
insertStakeSlice syncEnv $ apStakeSlice applyResult
199
199
200
- when (ioGov iopts)
200
+ when (ioGov iopts && (withinHalfHour || unBlockNo ( Generic. blkBlockNo blk) `mod` 10000 == 0 ) )
201
201
. lift
202
202
$ insertOffChainVoteResults tracer (envOffChainVoteResultQueue syncEnv)
203
203
204
- when (ioOffChainPoolData iopts)
204
+ when (ioOffChainPoolData iopts && (withinHalfHour || unBlockNo ( Generic. blkBlockNo blk) `mod` 10000 == 0 ) )
205
205
. lift
206
206
$ insertOffChainPoolResults tracer (envOffChainPoolResultQueue syncEnv)
207
207
where
You can’t perform that action at this time.
0 commit comments