Skip to content

Commit

Permalink
singleNodeTestConfigWith: properly use Genesis window
Browse files Browse the repository at this point in the history
The unused `_eraParams` binding is likely an accidental leftover.

The actual Genesis tests aren't affected as they use their own custom config
defined in `Test.Consensus.PeerSimulator.Config`.
  • Loading branch information
amesgen committed Nov 22, 2024
1 parent 244ea9f commit 88202cb
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -624,14 +624,12 @@ singleNodeTestConfigWith codecConfig storageConfig k genesisWindow = TopLevelCon

ledgerCfgParams :: TestBlockLedgerConfig
ledgerCfgParams = TestBlockLedgerConfig {
tblcHardForkParams = HardFork.defaultEraParams k slotLength,
tblcHardForkParams = (HardFork.defaultEraParams k slotLength) {
HardFork.eraGenesisWin = genesisWindow
},
tblcForecastRange = SNothing
}

_eraParams :: HardFork.EraParams
_eraParams = (HardFork.defaultEraParams k slotLength) {HardFork.eraGenesisWin = genesisWindow}


{-------------------------------------------------------------------------------
Test blocks without payload
-------------------------------------------------------------------------------}
Expand Down

0 comments on commit 88202cb

Please sign in to comment.