Skip to content

Commit 55d3fb6

Browse files
committed
WIP ThreadNet: address code style
1 parent 0c46cb0 commit 55d3fb6

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

ouroboros-consensus-cardano/src/unstable-cardano-testlib/Test/ThreadNet/Infra/ShelleyBasedHardFork.hs

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
{-# LANGUAGE InstanceSigs #-}
99
{-# LANGUAGE LambdaCase #-}
1010
{-# LANGUAGE MultiParamTypeClasses #-}
11-
{-# LANGUAGE NamedFieldPuns #-}
1211
{-# LANGUAGE PatternSynonyms #-}
1312
{-# LANGUAGE RankNTypes #-}
1413
{-# LANGUAGE ScopedTypeVariables #-}
@@ -237,19 +236,19 @@ instance
237236

238237
hardForkEraTranslation =
239238
EraTranslation
240-
{ translateLedgerState = PCons translateLedgerState PNil
241-
, translateLedgerTables = PCons translateLedgerTables PNil
239+
{ translateLedgerState = PCons translateLedgerStateInstance PNil
240+
, translateLedgerTables = PCons translateLedgerTablesInstance PNil
242241
, translateChainDepState = PCons translateChainDepStateAcrossShelley PNil
243242
, crossEraForecast = PCons crossEraForecastAcrossShelley PNil
244243
}
245244
where
246-
translateLedgerState ::
245+
translateLedgerStateInstance ::
247246
InPairs.RequiringBoth
248247
WrapLedgerConfig
249248
TranslateLedgerState
250249
(ShelleyBlock proto1 era1)
251250
(ShelleyBlock proto2 era2)
252-
translateLedgerState =
251+
translateLedgerStateInstance =
253252
InPairs.RequireBoth $
254253
\_cfg1 cfg2 ->
255254
HFC.TranslateLedgerState
@@ -263,11 +262,11 @@ instance
263262
. Flip
264263
}
265264

266-
translateLedgerTables ::
265+
translateLedgerTablesInstance ::
267266
TranslateLedgerTables
268267
(ShelleyBlock proto1 era1)
269268
(ShelleyBlock proto2 era2)
270-
translateLedgerTables =
269+
translateLedgerTablesInstance =
271270
HFC.TranslateLedgerTables
272271
{ translateTxInWith = coerce
273272
, translateTxOutWith = SL.upgradeTxOut
@@ -459,9 +458,9 @@ protocolInfoShelleyBasedHardFork
459458
toPartialLedgerConfig1 ::
460459
LedgerConfig (ShelleyBlock proto1 era1) ->
461460
PartialLedgerConfig (ShelleyBlock proto1 era1)
462-
toPartialLedgerConfig1 cfg =
461+
toPartialLedgerConfig1 cfg1 =
463462
ShelleyPartialLedgerConfig
464-
{ shelleyLedgerConfig = cfg
463+
{ shelleyLedgerConfig = cfg1
465464
, shelleyTriggerHardFork = hardForkTrigger
466465
}
467466

@@ -482,9 +481,9 @@ protocolInfoShelleyBasedHardFork
482481
toPartialLedgerConfig2 ::
483482
LedgerConfig (ShelleyBlock proto2 era2) ->
484483
PartialLedgerConfig (ShelleyBlock proto2 era2)
485-
toPartialLedgerConfig2 cfg =
484+
toPartialLedgerConfig2 cfg2 =
486485
ShelleyPartialLedgerConfig
487-
{ shelleyLedgerConfig = cfg
486+
{ shelleyLedgerConfig = cfg2
488487
, shelleyTriggerHardFork = TriggerHardForkNotDuringThisExecution
489488
}
490489

ouroboros-consensus-cardano/src/unstable-shelley-testlib/Test/ThreadNet/Infra/Shelley.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ import Ouroboros.Consensus.Protocol.Praos.Common
109109
, praosCanBeLeaderSignKeyVRF
110110
)
111111
import Ouroboros.Consensus.Protocol.TPraos
112-
import Ouroboros.Consensus.Shelley.Eras (AlonzoEra, BabbageEra, ConwayEra, MaryEra, ShelleyEra)
112+
import Ouroboros.Consensus.Shelley.Eras (ConwayEra, ShelleyEra)
113113
import Ouroboros.Consensus.Shelley.Ledger
114114
( GenTx (..)
115115
, ShelleyBasedEra

0 commit comments

Comments
 (0)