Skip to content

Commit 01a08d4

Browse files
committed
Update test ChainDB construction
1 parent fc66f2d commit 01a08d4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ouroboros-consensus-test/src/Test/Util/ChainDB.hs

+2-3
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ import Ouroboros.Consensus.Block.Abstract
1919
import Ouroboros.Consensus.Config
2020
(TopLevelConfig (topLevelConfigLedger),
2121
configSecurityParam)
22-
import Ouroboros.Consensus.Fragment.InFuture (CheckInFuture (..))
23-
import qualified Ouroboros.Consensus.Fragment.Validated as VF
22+
import Ouroboros.Consensus.Fragment.InFuture (dontCheck)
2423
import Ouroboros.Consensus.HardFork.History.EraParams (EraParams,
2524
eraEpochSize)
2625
import Ouroboros.Consensus.Ledger.Basics (LedgerConfig)
@@ -103,7 +102,7 @@ fromMinimalChainDbArgs MinimalChainDbArgs {..} = ChainDbArgs {
103102
-- ImmutableDB, as the VolatileDB. This is done in @extractBlockComponent@ in the iterator for the
104103
-- ImmutableDB, and in @getBlockComponent@ for the VolatileDB.
105104
, cdbGenesis = return mcdbInitLedger
106-
, cdbCheckInFuture = CheckInFuture $ \vf -> pure (VF.validatedFragment vf, [])
105+
, cdbCheckInFuture = dontCheck
107106
-- Blocks are never in the future.
108107
, cdbImmutableDbCacheConfig = ImmutableDB.CacheConfig 2 60
109108
-- Cache at most 2 chunks and expire each chunk after 60 seconds of being unused.

0 commit comments

Comments
 (0)