File tree 2 files changed +0
-22
lines changed
eras/shelley/test-suite/test
Test/Cardano/Ledger/Shelley
2 files changed +0
-22
lines changed Original file line number Diff line number Diff line change 9
9
module Test.Cardano.Ledger.Shelley.RulesTests (
10
10
chainExamples ,
11
11
multisigExamples ,
12
- testTickF ,
13
12
) where
14
13
15
14
import Cardano.Ledger.BaseTypes (Network (.. ), StrictMaybe (.. ))
@@ -520,22 +519,3 @@ setDepositsToObligation nes = nes {nesEs = es {esLState = ls {lsUTxOState = utxo
520
519
(lsCertState ls)
521
520
(utxoState ^. utxosGovStateL)
522
521
}
523
-
524
- -- | This property test checks the correctness of the TICKF transation.
525
- -- TICKF is used by the consensus layer to get a ledger view in a computationally
526
- -- cheaper way than using the TICK rule.
527
- -- Therefore TICKF and TICK need to compute the same ledger view.
528
- propTickfPerservesLedgerView :: NewEpochState ShelleyEra -> Property
529
- propTickfPerservesLedgerView nes =
530
- let (EpochNo e) = nesEL nes
531
- slot = slotFromEpoch (EpochNo $ e + 1 )
532
- nes' = setDepositsToObligation (filterEmptyRewards nes)
533
- tickNes = runShelleyBase $ applySTSTest @ (ShelleyTICK ShelleyEra ) (TRC (() , nes', slot))
534
- tickFNes = runShelleyBase $ applySTSTest @ (ShelleyTICKF ShelleyEra ) (TRC (() , nes', slot))
535
- in fromMaybe discard $ do
536
- Right tickNes' <- pure tickNes
537
- Right tickFNes' <- pure tickFNes
538
- pure $ currentLedgerView tickNes' === currentLedgerView tickFNes'
539
-
540
- testTickF :: TestTree
541
- testTickF = testProperty " TICKF properties" propTickfPerservesLedgerView
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ import qualified Test.Cardano.Ledger.Shelley.Rules.Deposits as Deposits (tests)
16
16
import qualified Test.Cardano.Ledger.Shelley.RulesTests as RulesTests (
17
17
chainExamples ,
18
18
multisigExamples ,
19
- testTickF ,
20
19
)
21
20
import qualified Test.Cardano.Ledger.Shelley.SafeHash as SafeHash (safeHashTest )
22
21
import qualified Test.Cardano.Ledger.Shelley.Serialisation as Serialisation
@@ -52,7 +51,6 @@ defaultTests =
52
51
, Serialisation. tests
53
52
, RulesTests. chainExamples
54
53
, RulesTests. multisigExamples
55
- , RulesTests. testTickF
56
54
, UnitTests. unitTests
57
55
, SafeHash. safeHashTest
58
56
]
You can’t perform that action at this time.
0 commit comments