@@ -247,7 +247,7 @@ getInsertOptions :: SyncEnv -> InsertOptions
247247getInsertOptions = soptInsertOptions . envOptions
248248
249249getSlotHash :: DB. DbEnv -> SlotNo -> IO [(SlotNo , ByteString )]
250- getSlotHash backend slotNo = DB. runDbTransSilent backend ( Just DB. ReadCommitted) (DB. querySlotHash slotNo)
250+ getSlotHash backend slotNo = DB. runDbTransSilent backend DB. ReadCommitted (DB. querySlotHash slotNo)
251251
252252hasLedgerState :: SyncEnv -> Bool
253253hasLedgerState syncEnv =
@@ -258,7 +258,7 @@ hasLedgerState syncEnv =
258258getDbLatestBlockInfo :: DB. DbEnv -> IO (Maybe TipInfo )
259259getDbLatestBlockInfo dbEnv = do
260260 runMaybeT $ do
261- block <- MaybeT $ DB. runDbTransSilent dbEnv ( Just DB. ReadCommitted) DB. queryLatestBlock
261+ block <- MaybeT $ DB. runDbTransSilent dbEnv DB. ReadCommitted DB. queryLatestBlock
262262 -- The EpochNo, SlotNo and BlockNo can only be zero for the Byron
263263 -- era, but we need to make the types match, hence `fromMaybe`.
264264 pure $
@@ -324,7 +324,7 @@ mkSyncEnv ::
324324 Bool ->
325325 IO SyncEnv
326326mkSyncEnv metricSetters trce dbEnv syncOptions protoInfo nw maxLovelaceSupply nwMagic systemStart syncNodeConfigFromFile syncNP runNearTipMigrationFnc isJsonbInSchema = do
327- dbCNamesVar <- newTVarIO =<< DB. runDbTransSilent dbEnv ( Just DB. ReadCommitted) DB. queryRewardAndEpochStakeConstraints
327+ dbCNamesVar <- newTVarIO =<< DB. runDbTransSilent dbEnv DB. ReadCommitted DB. queryRewardAndEpochStakeConstraints
328328 cache <-
329329 if soptCache syncOptions
330330 then
@@ -461,7 +461,7 @@ getLatestPoints env = do
461461 verifySnapshotPoint env snapshotPoints
462462 NoLedger _ -> do
463463 -- Brings the 5 latest.
464- lastPoints <- DB. runDbTransSilent (envDbEnv env) ( Just DB. ReadCommitted ) DB. queryLatestPoints
464+ lastPoints <- DB. runDbDirectSilent (envDbEnv env) DB. queryLatestPoints
465465 pure $ mapMaybe convert lastPoints
466466 where
467467 convert (Nothing , _) = Nothing
@@ -516,7 +516,7 @@ getBootstrapInProgress ::
516516 DB. DbEnv ->
517517 IO Bool
518518getBootstrapInProgress trce bootstrapFlag dbEnv = do
519- DB. runDbTransSilent dbEnv ( Just DB. ReadCommitted) $ do
519+ DB. runDbTransSilent dbEnv DB. ReadCommitted $ do
520520 ems <- DB. queryAllExtraMigrations
521521 let btsState = DB. bootstrapState ems
522522 case (bootstrapFlag, btsState) of
0 commit comments