Skip to content

Commit f196bfc

Browse files
authored
Two tiny cleanups (#1328)
Noticed while doing other stuff, see the commit descriptions
2 parents 244ea9f + 3f01af4 commit f196bfc

File tree

2 files changed

+3
-6
lines changed
  • ouroboros-consensus
    • src/unstable-consensus-testlib/Test/Util
    • test/consensus-test/Test/Consensus/MiniProtocol/BlockFetch

2 files changed

+3
-6
lines changed

ouroboros-consensus/src/unstable-consensus-testlib/Test/Util/TestBlock.hs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -624,14 +624,12 @@ singleNodeTestConfigWith codecConfig storageConfig k genesisWindow = TopLevelCon
624624

625625
ledgerCfgParams :: TestBlockLedgerConfig
626626
ledgerCfgParams = TestBlockLedgerConfig {
627-
tblcHardForkParams = HardFork.defaultEraParams k slotLength,
627+
tblcHardForkParams = (HardFork.defaultEraParams k slotLength) {
628+
HardFork.eraGenesisWin = genesisWindow
629+
},
628630
tblcForecastRange = SNothing
629631
}
630632

631-
_eraParams :: HardFork.EraParams
632-
_eraParams = (HardFork.defaultEraParams k slotLength) {HardFork.eraGenesisWin = genesisWindow}
633-
634-
635633
{-------------------------------------------------------------------------------
636634
Test blocks without payload
637635
-------------------------------------------------------------------------------}

ouroboros-consensus/test/consensus-test/Test/Consensus/MiniProtocol/BlockFetch/Client.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ runBlockFetchTest BlockFetchClientTestSetup{..} = withRegistry \registry -> do
244244
, mcdbRegistry = registry
245245
, mcdbNodeDBs = nodeDBs
246246
}
247-
-- TODO: Test with more interesting behaviour for cdbCheckInFuture
248247
pure $ ChainDB.updateTracer cdbTracer args
249248
(_, (chainDB, ChainDBImpl.Internal{intAddBlockRunner})) <-
250249
allocate

0 commit comments

Comments
 (0)