@@ -112,7 +112,6 @@ import Ouroboros.Consensus.Ledger.Extended
112112import Ouroboros.Consensus.Ledger.Inspect
113113import Ouroboros.Consensus.Ledger.SupportsProtocol
114114import Ouroboros.Consensus.Protocol.Abstract
115- import Ouroboros.Consensus.Protocol.BFT
116115import Ouroboros.Consensus.Storage.ChainDB hiding
117116 (TraceFollowerEvent (.. ))
118117import qualified Ouroboros.Consensus.Storage.ChainDB as ChainDB
@@ -131,16 +130,10 @@ import Ouroboros.Consensus.Util.Condense (condense)
131130import Ouroboros.Consensus.Util.Enclose
132131import Ouroboros.Consensus.Util.IOLike hiding (invariant )
133132import Ouroboros.Consensus.Util.ResourceRegistry
134- import Ouroboros.Consensus.Util.STM (Fingerprint (.. ),
135- WithFingerprint (.. ))
136133import Ouroboros.Network.AnchoredFragment (AnchoredFragment )
137134import qualified Ouroboros.Network.AnchoredFragment as AF
138135import Ouroboros.Network.Block (ChainUpdate , MaxSlotNo )
139- import Ouroboros.Network.Mock.Chain (Chain (.. ))
140136import qualified Ouroboros.Network.Mock.Chain as Chain
141- import Ouroboros.Network.Mock.ProducerState (ChainProducerState ,
142- FollowerNext , FollowerState )
143- import qualified Ouroboros.Network.Mock.ProducerState as CPS
144137import qualified System.FS.Sim.MockFS as Mock
145138import System.FS.Sim.MockFS (MockFS )
146139import qualified Test.Ouroboros.Storage.ChainDB.Model as Model
@@ -1220,35 +1213,6 @@ instance CommandNames (At Cmd blk m) where
12201213 cmdNames (_ :: Proxy (At Cmd blk m r )) =
12211214 constrNames (Proxy @ (Cmd blk () () ))
12221215
1223- deriving instance Generic FollowerNext
1224- deriving instance Generic IteratorId
1225- deriving instance Generic (Chain blk )
1226- deriving instance Generic (ChainProducerState blk )
1227- deriving instance Generic (FollowerState blk )
1228-
1229- deriving anyclass instance ToExpr Fingerprint
1230- deriving anyclass instance ToExpr FollowerNext
1231- deriving anyclass instance ToExpr MaxSlotNo
1232- deriving instance ToExpr (HeaderHash blk ) => ToExpr (ChainHash blk )
1233- deriving instance ToExpr (HeaderHash blk ) => ToExpr (FollowerState blk )
1234- deriving instance ToExpr blk => ToExpr (Chain blk )
1235- deriving instance ( ToExpr blk
1236- , ToExpr (HeaderHash blk )
1237- )
1238- => ToExpr (ChainProducerState blk )
1239- deriving instance ToExpr a => ToExpr (WithFingerprint a )
1240- deriving instance ( ToExpr (HeaderHash blk )
1241- , ToExpr (ExtValidationError blk )
1242- )
1243- => ToExpr (InvalidBlockReason blk )
1244- deriving instance ( ToExpr blk
1245- , ToExpr (HeaderHash blk )
1246- , ToExpr (ChainDepState (BlockProtocol blk ))
1247- , ToExpr (TipInfo blk )
1248- , ToExpr (LedgerState blk )
1249- , ToExpr (ExtValidationError blk )
1250- )
1251- => ToExpr (DBModel blk )
12521216deriving instance ( ToExpr blk
12531217 , ToExpr (HeaderHash blk )
12541218 , ToExpr (ChainDepState (BlockProtocol blk ))
@@ -1258,26 +1222,6 @@ deriving instance ( ToExpr blk
12581222 )
12591223 => ToExpr (Model blk IO Concrete )
12601224
1261- -- Blk specific instances
1262-
1263- deriving anyclass instance ToExpr ChainLength
1264- deriving anyclass instance ToExpr TestHeaderHash
1265- deriving anyclass instance ToExpr TestBodyHash
1266-
1267- deriving instance ToExpr EBB
1268- deriving instance ToExpr IsEBB
1269- deriving instance ToExpr TestHeader
1270- deriving instance ToExpr TestBody
1271- deriving instance ToExpr TestBlockError
1272- deriving instance ToExpr Blk
1273- deriving instance ToExpr (TipInfoIsEBB Blk )
1274- deriving instance ToExpr (LedgerState Blk )
1275- deriving instance ToExpr (HeaderError Blk )
1276- deriving instance ToExpr TestBlockOtherHeaderEnvelopeError
1277- deriving instance ToExpr (HeaderEnvelopeError Blk )
1278- deriving instance ToExpr BftValidationErr
1279- deriving instance ToExpr (ExtValidationError Blk )
1280-
12811225{- ------------------------------------------------------------------------------
12821226 Labelling
12831227-------------------------------------------------------------------------------}
@@ -1373,8 +1317,6 @@ execCmds model = \(QSM.Commands cs) -> go model cs
13731317
13741318type Blk = TestBlock
13751319
1376- instance ModelSupportsBlock TestBlock
1377-
13781320-- | Note that the 'Blk = TestBlock' is general enough to be used by both the
13791321-- ChainDB /and/ the ImmutableDB, its generators cannot. For example, in the
13801322-- ChainDB, blocks are added /out of order/, while in the ImmutableDB, they
0 commit comments