-
Notifications
You must be signed in to change notification settings - Fork 20
/
ouroboros-consensus.cabal
729 lines (700 loc) · 22.1 KB
/
ouroboros-consensus.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
cabal-version: 3.0
name: ouroboros-consensus
version: 0.17.0.0
synopsis: Consensus layer for the Ouroboros blockchain protocol
description: Consensus layer for the Ouroboros blockchain protocol.
license: Apache-2.0
license-files:
LICENSE
NOTICE
copyright:
2019-2023 Input Output Global Inc (IOG), INTERSECT 2023-2024.
author: IOG Engineering Team
maintainer: operations@iohk.io
category: Network
build-type: Simple
extra-doc-files:
CHANGELOG.md
docs/haddocks/*.svg
source-repository head
type: git
location: https://github.com/IntersectMBO/ouroboros-consensus
flag asserts
description: Enable assertions
manual: False
default: False
common common-lib
default-language: Haskell2010
ghc-options:
-Wall
-Wcompat
-Wincomplete-uni-patterns
-Wincomplete-record-updates
-Wpartial-fields
-Widentities
-Wredundant-constraints
-Wmissing-export-lists
-Wunused-packages
-Wno-unticked-promoted-constructors
if flag(asserts)
ghc-options: -fno-ignore-asserts
cpp-options: -DENABLE_ASSERTIONS
common common-test
import: common-lib
ghc-options:
-threaded
-rtsopts
common common-bench
import: common-test
ghc-options:
-threaded
-rtsopts
-- We use this option to avoid skewed results due to changes in cache-line
-- alignment. See
-- https://github.com/Bodigrim/tasty-bench#comparison-against-baseline
if impl(ghc >= 8.6)
ghc-options: -fproc-alignment=64
library
import: common-lib
hs-source-dirs: src/ouroboros-consensus
exposed-modules:
Ouroboros.Consensus.Block
Ouroboros.Consensus.Block.Abstract
Ouroboros.Consensus.Block.EBB
Ouroboros.Consensus.Block.Forging
Ouroboros.Consensus.Block.NestedContent
Ouroboros.Consensus.Block.RealPoint
Ouroboros.Consensus.Block.SupportsDiffusionPipelining
Ouroboros.Consensus.Block.SupportsMetrics
Ouroboros.Consensus.Block.SupportsProtocol
Ouroboros.Consensus.BlockchainTime
Ouroboros.Consensus.BlockchainTime.API
Ouroboros.Consensus.BlockchainTime.WallClock.Default
Ouroboros.Consensus.BlockchainTime.WallClock.HardFork
Ouroboros.Consensus.BlockchainTime.WallClock.Simple
Ouroboros.Consensus.BlockchainTime.WallClock.Types
Ouroboros.Consensus.BlockchainTime.WallClock.Util
Ouroboros.Consensus.Config
Ouroboros.Consensus.Config.SecurityParam
Ouroboros.Consensus.Config.SupportsNode
Ouroboros.Consensus.Forecast
Ouroboros.Consensus.Fragment.Diff
Ouroboros.Consensus.Fragment.InFuture
Ouroboros.Consensus.Fragment.Validated
Ouroboros.Consensus.Fragment.ValidatedDiff
Ouroboros.Consensus.Genesis.Governor
Ouroboros.Consensus.HardFork.Abstract
Ouroboros.Consensus.HardFork.Combinator
Ouroboros.Consensus.HardFork.Combinator.Abstract
Ouroboros.Consensus.HardFork.Combinator.Abstract.CanHardFork
Ouroboros.Consensus.HardFork.Combinator.Abstract.NoHardForks
Ouroboros.Consensus.HardFork.Combinator.Abstract.SingleEraBlock
Ouroboros.Consensus.HardFork.Combinator.AcrossEras
Ouroboros.Consensus.HardFork.Combinator.Basics
Ouroboros.Consensus.HardFork.Combinator.Block
Ouroboros.Consensus.HardFork.Combinator.Compat
Ouroboros.Consensus.HardFork.Combinator.Condense
Ouroboros.Consensus.HardFork.Combinator.Degenerate
Ouroboros.Consensus.HardFork.Combinator.Embed.Binary
Ouroboros.Consensus.HardFork.Combinator.Embed.Nary
Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
Ouroboros.Consensus.HardFork.Combinator.Forging
Ouroboros.Consensus.HardFork.Combinator.Info
Ouroboros.Consensus.HardFork.Combinator.InjectTxs
Ouroboros.Consensus.HardFork.Combinator.Ledger
Ouroboros.Consensus.HardFork.Combinator.Ledger.CommonProtocolParams
Ouroboros.Consensus.HardFork.Combinator.Ledger.PeerSelection
Ouroboros.Consensus.HardFork.Combinator.Ledger.Query
Ouroboros.Consensus.HardFork.Combinator.Lifting
Ouroboros.Consensus.HardFork.Combinator.Mempool
Ouroboros.Consensus.HardFork.Combinator.Node
Ouroboros.Consensus.HardFork.Combinator.Node.DiffusionPipelining
Ouroboros.Consensus.HardFork.Combinator.Node.InitStorage
Ouroboros.Consensus.HardFork.Combinator.Node.Metrics
Ouroboros.Consensus.HardFork.Combinator.PartialConfig
Ouroboros.Consensus.HardFork.Combinator.Protocol
Ouroboros.Consensus.HardFork.Combinator.Protocol.ChainSel
Ouroboros.Consensus.HardFork.Combinator.Protocol.LedgerView
Ouroboros.Consensus.HardFork.Combinator.Serialisation
Ouroboros.Consensus.HardFork.Combinator.Serialisation.Common
Ouroboros.Consensus.HardFork.Combinator.Serialisation.SerialiseDisk
Ouroboros.Consensus.HardFork.Combinator.Serialisation.SerialiseNodeToClient
Ouroboros.Consensus.HardFork.Combinator.Serialisation.SerialiseNodeToNode
Ouroboros.Consensus.HardFork.Combinator.State
Ouroboros.Consensus.HardFork.Combinator.State.Infra
Ouroboros.Consensus.HardFork.Combinator.State.Instances
Ouroboros.Consensus.HardFork.Combinator.State.Lift
Ouroboros.Consensus.HardFork.Combinator.State.Types
Ouroboros.Consensus.HardFork.Combinator.Translation
Ouroboros.Consensus.HardFork.History
Ouroboros.Consensus.HardFork.History.Caching
Ouroboros.Consensus.HardFork.History.EpochInfo
Ouroboros.Consensus.HardFork.History.EraParams
Ouroboros.Consensus.HardFork.History.Qry
Ouroboros.Consensus.HardFork.History.Summary
Ouroboros.Consensus.HardFork.History.Util
Ouroboros.Consensus.HardFork.Simple
Ouroboros.Consensus.HeaderStateHistory
Ouroboros.Consensus.HeaderValidation
Ouroboros.Consensus.Ledger.Abstract
Ouroboros.Consensus.Ledger.Basics
Ouroboros.Consensus.Ledger.CommonProtocolParams
Ouroboros.Consensus.Ledger.Dual
Ouroboros.Consensus.Ledger.Extended
Ouroboros.Consensus.Ledger.Inspect
Ouroboros.Consensus.Ledger.Query
Ouroboros.Consensus.Ledger.Query.Version
Ouroboros.Consensus.Ledger.SupportsMempool
Ouroboros.Consensus.Ledger.SupportsPeerSelection
Ouroboros.Consensus.Ledger.SupportsProtocol
Ouroboros.Consensus.Mempool
Ouroboros.Consensus.Mempool.API
Ouroboros.Consensus.Mempool.Capacity
Ouroboros.Consensus.Mempool.Impl.Common
Ouroboros.Consensus.Mempool.Init
Ouroboros.Consensus.Mempool.Query
Ouroboros.Consensus.Mempool.TxSeq
Ouroboros.Consensus.Mempool.Update
Ouroboros.Consensus.MiniProtocol.BlockFetch.ClientInterface
Ouroboros.Consensus.MiniProtocol.BlockFetch.Server
Ouroboros.Consensus.MiniProtocol.ChainSync.Client
Ouroboros.Consensus.MiniProtocol.ChainSync.Client.InFutureCheck
Ouroboros.Consensus.MiniProtocol.ChainSync.Server
Ouroboros.Consensus.MiniProtocol.LocalStateQuery.Server
Ouroboros.Consensus.MiniProtocol.LocalTxMonitor.Server
Ouroboros.Consensus.MiniProtocol.LocalTxSubmission.Server
Ouroboros.Consensus.Node.InitStorage
Ouroboros.Consensus.Node.NetworkProtocolVersion
Ouroboros.Consensus.Node.ProtocolInfo
Ouroboros.Consensus.Node.Run
Ouroboros.Consensus.Node.Serialisation
Ouroboros.Consensus.NodeId
Ouroboros.Consensus.Protocol.Abstract
Ouroboros.Consensus.Protocol.BFT
Ouroboros.Consensus.Protocol.LeaderSchedule
Ouroboros.Consensus.Protocol.MockChainSel
Ouroboros.Consensus.Protocol.ModChainSel
Ouroboros.Consensus.Protocol.PBFT
Ouroboros.Consensus.Protocol.PBFT.Crypto
Ouroboros.Consensus.Protocol.PBFT.State
Ouroboros.Consensus.Protocol.Signed
Ouroboros.Consensus.Storage.ChainDB
Ouroboros.Consensus.Storage.ChainDB.API
Ouroboros.Consensus.Storage.ChainDB.API.Types.InvalidBlockPunishment
Ouroboros.Consensus.Storage.ChainDB.Impl
Ouroboros.Consensus.Storage.ChainDB.Impl.Args
Ouroboros.Consensus.Storage.ChainDB.Impl.Background
Ouroboros.Consensus.Storage.ChainDB.Impl.BlockCache
Ouroboros.Consensus.Storage.ChainDB.Impl.ChainSel
Ouroboros.Consensus.Storage.ChainDB.Impl.Follower
Ouroboros.Consensus.Storage.ChainDB.Impl.Iterator
Ouroboros.Consensus.Storage.ChainDB.Impl.LgrDB
Ouroboros.Consensus.Storage.ChainDB.Impl.Paths
Ouroboros.Consensus.Storage.ChainDB.Impl.Query
Ouroboros.Consensus.Storage.ChainDB.Impl.Types
Ouroboros.Consensus.Storage.ChainDB.Init
Ouroboros.Consensus.Storage.Common
Ouroboros.Consensus.Storage.ImmutableDB
Ouroboros.Consensus.Storage.ImmutableDB.API
Ouroboros.Consensus.Storage.ImmutableDB.Chunks
Ouroboros.Consensus.Storage.ImmutableDB.Chunks.Internal
Ouroboros.Consensus.Storage.ImmutableDB.Chunks.Layout
Ouroboros.Consensus.Storage.ImmutableDB.Impl
Ouroboros.Consensus.Storage.ImmutableDB.Impl.Index
Ouroboros.Consensus.Storage.ImmutableDB.Impl.Index.Cache
Ouroboros.Consensus.Storage.ImmutableDB.Impl.Index.Primary
Ouroboros.Consensus.Storage.ImmutableDB.Impl.Index.Secondary
Ouroboros.Consensus.Storage.ImmutableDB.Impl.Iterator
Ouroboros.Consensus.Storage.ImmutableDB.Impl.Parser
Ouroboros.Consensus.Storage.ImmutableDB.Impl.State
Ouroboros.Consensus.Storage.ImmutableDB.Impl.Types
Ouroboros.Consensus.Storage.ImmutableDB.Impl.Util
Ouroboros.Consensus.Storage.ImmutableDB.Impl.Validation
Ouroboros.Consensus.Storage.ImmutableDB.Stream
Ouroboros.Consensus.Storage.LedgerDB
Ouroboros.Consensus.Storage.LedgerDB.DiskPolicy
Ouroboros.Consensus.Storage.LedgerDB.Init
Ouroboros.Consensus.Storage.LedgerDB.LedgerDB
Ouroboros.Consensus.Storage.LedgerDB.Query
Ouroboros.Consensus.Storage.LedgerDB.Snapshots
Ouroboros.Consensus.Storage.LedgerDB.Update
Ouroboros.Consensus.Storage.Serialisation
Ouroboros.Consensus.Storage.VolatileDB
Ouroboros.Consensus.Storage.VolatileDB.API
Ouroboros.Consensus.Storage.VolatileDB.Impl
Ouroboros.Consensus.Storage.VolatileDB.Impl.FileInfo
Ouroboros.Consensus.Storage.VolatileDB.Impl.Index
Ouroboros.Consensus.Storage.VolatileDB.Impl.Parser
Ouroboros.Consensus.Storage.VolatileDB.Impl.State
Ouroboros.Consensus.Storage.VolatileDB.Impl.Types
Ouroboros.Consensus.Storage.VolatileDB.Impl.Util
Ouroboros.Consensus.Ticked
Ouroboros.Consensus.TypeFamilyWrappers
Ouroboros.Consensus.Util
Ouroboros.Consensus.Util.AnchoredFragment
Ouroboros.Consensus.Util.Args
Ouroboros.Consensus.Util.Assert
Ouroboros.Consensus.Util.CBOR
Ouroboros.Consensus.Util.CallStack
Ouroboros.Consensus.Util.Condense
Ouroboros.Consensus.Util.DepPair
Ouroboros.Consensus.Util.EarlyExit
Ouroboros.Consensus.Util.Enclose
Ouroboros.Consensus.Util.FileLock
Ouroboros.Consensus.Util.HList
Ouroboros.Consensus.Util.IOLike
Ouroboros.Consensus.Util.LeakyBucket
Ouroboros.Consensus.Util.MonadSTM.NormalForm
Ouroboros.Consensus.Util.MonadSTM.RAWLock
Ouroboros.Consensus.Util.MonadSTM.StrictSVar
Ouroboros.Consensus.Util.NormalForm.StrictMVar
Ouroboros.Consensus.Util.NormalForm.StrictTVar
Ouroboros.Consensus.Util.Orphans
Ouroboros.Consensus.Util.RedundantConstraints
Ouroboros.Consensus.Util.ResourceRegistry
Ouroboros.Consensus.Util.STM
Ouroboros.Consensus.Util.Time
Ouroboros.Consensus.Util.Versioned
build-depends:
base >=4.14 && <4.20,
base16-bytestring,
bimap >=0.4 && <0.6,
binary >=0.8 && <0.11,
bytestring >=0.10 && <0.13,
cardano-binary,
cardano-crypto-class,
cardano-prelude,
cardano-slotting,
cardano-strict-containers,
cborg ^>=0.2.2,
containers >=0.5 && <0.7,
contra-tracer,
deepseq,
filelock,
fs-api ^>=0.2,
hashable,
io-classes ^>=1.4.1,
measures,
mtl,
nothunks ^>=0.1.5,
ouroboros-network-api ^>=0.7,
ouroboros-network-mock ^>=0.1,
ouroboros-network-protocols ^>=0.8,
primitive,
psqueues ^>=0.2.3,
quiet ^>=0.2,
reflection,
semialign >=1.1,
serialise ^>=0.2,
si-timers ^>=1.4,
sop-core ^>=0.5,
sop-extras ^>=0.1,
streaming,
strict-checked-vars ^>=0.2,
strict-sop-core ^>=0.1,
strict-stm ^>=1.4,
text,
these ^>=1.2,
time,
transformers,
typed-protocols ^>=0.1.1,
vector ^>=0.13,
-- GHC 8.10.7 on aarch64-darwin cannot use text-2
build-depends: text >=1.2.5.0 && <2.2
x-docspec-extra-packages:
directory
latex-svg-image
library unstable-consensus-testlib
import: common-lib
visibility: public
hs-source-dirs: src/unstable-consensus-testlib
exposed-modules:
Test.Ouroboros.Consensus.ChainGenerator.Adversarial
Test.Ouroboros.Consensus.ChainGenerator.BitVector
Test.Ouroboros.Consensus.ChainGenerator.Counting
Test.Ouroboros.Consensus.ChainGenerator.Honest
Test.Ouroboros.Consensus.ChainGenerator.Params
Test.Ouroboros.Consensus.ChainGenerator.RaceIterator
Test.Ouroboros.Consensus.ChainGenerator.Slot
Test.Ouroboros.Consensus.ChainGenerator.Some
Test.Ouroboros.Consensus.DiffusionPipelining
Test.QuickCheck.Extras
Test.Util.BoolProps
Test.Util.ChainDB
Test.Util.ChainUpdates
Test.Util.ChunkInfo
Test.Util.Corruption
Test.Util.FileLock
Test.Util.HardFork.Future
Test.Util.HardFork.OracularClock
Test.Util.InvertedMap
Test.Util.LogicalClock
Test.Util.MockChain
Test.Util.Orphans.Arbitrary
Test.Util.Orphans.IOLike
Test.Util.Orphans.NoThunks
Test.Util.Orphans.Serialise
Test.Util.Orphans.SignableRepresentation
Test.Util.Orphans.ToExpr
Test.Util.Paths
Test.Util.QSM
Test.Util.QuickCheck
Test.Util.Range
Test.Util.RefEnv
Test.Util.SOP
Test.Util.Schedule
Test.Util.Serialisation.Examples
Test.Util.Serialisation.Golden
Test.Util.Serialisation.Roundtrip
Test.Util.Serialisation.SomeResult
Test.Util.Shrink
Test.Util.Slots
Test.Util.Split
Test.Util.Stream
Test.Util.SupportedNetworkProtocolVersion
Test.Util.TestBlock
Test.Util.TestEnv
Test.Util.Time
Test.Util.ToExpr
Test.Util.Tracer
Test.Util.WithEq
build-depends:
QuickCheck,
base,
base16-bytestring,
binary,
bytestring,
cardano-binary:testlib,
cardano-crypto-class,
cardano-prelude,
cardano-slotting:testlib,
cardano-strict-containers,
cborg,
constraints,
containers,
contra-tracer,
deepseq,
directory,
file-embed,
filepath,
fs-api ^>=0.2,
fs-sim ^>=0.2,
generics-sop,
io-classes,
io-sim,
mtl,
nothunks,
optparse-applicative,
ouroboros-consensus,
ouroboros-network-api,
ouroboros-network-mock,
pretty-simple,
quickcheck-instances,
quickcheck-state-machine:no-vendored-treediff ^>=0.9,
quiet,
random,
serialise,
sop-core,
sop-extras,
strict-checked-vars,
strict-sop-core,
tasty,
tasty-golden,
tasty-hunit,
tasty-quickcheck,
template-haskell,
text,
time,
tree-diff,
utf8-string,
vector,
with-utf8,
library unstable-mock-block
import: common-lib
visibility: public
hs-source-dirs: src/unstable-mock-block
exposed-modules:
Ouroboros.Consensus.Mock.Ledger
Ouroboros.Consensus.Mock.Ledger.Address
Ouroboros.Consensus.Mock.Ledger.Block
Ouroboros.Consensus.Mock.Ledger.Block.BFT
Ouroboros.Consensus.Mock.Ledger.Block.PBFT
Ouroboros.Consensus.Mock.Ledger.Block.Praos
Ouroboros.Consensus.Mock.Ledger.Block.PraosRule
Ouroboros.Consensus.Mock.Ledger.Forge
Ouroboros.Consensus.Mock.Ledger.Stake
Ouroboros.Consensus.Mock.Ledger.State
Ouroboros.Consensus.Mock.Ledger.UTxO
Ouroboros.Consensus.Mock.Node
Ouroboros.Consensus.Mock.Node.Abstract
Ouroboros.Consensus.Mock.Node.BFT
Ouroboros.Consensus.Mock.Node.PBFT
Ouroboros.Consensus.Mock.Node.Praos
Ouroboros.Consensus.Mock.Node.PraosRule
Ouroboros.Consensus.Mock.Node.Serialisation
Ouroboros.Consensus.Mock.Protocol.LeaderSchedule
Ouroboros.Consensus.Mock.Protocol.Praos
build-depends:
base,
bimap,
bytestring,
cardano-binary,
cardano-crypto-class,
cardano-slotting:{cardano-slotting, testlib},
cborg,
containers,
deepseq,
hashable,
mtl,
nothunks,
ouroboros-consensus,
ouroboros-network-api,
ouroboros-network-mock,
serialise,
text,
time,
unstable-consensus-testlib,
library unstable-mempool-test-utils
import: common-lib
visibility: public
hs-source-dirs: src/unstable-mempool-test-utils
exposed-modules: Test.Consensus.Mempool.Mocked
build-depends:
base,
contra-tracer,
deepseq,
ouroboros-consensus,
strict-stm,
library unstable-tutorials
import: common-lib
visibility: public
hs-source-dirs: src/unstable-tutorials
other-modules:
Ouroboros.Consensus.Tutorial.Simple
Ouroboros.Consensus.Tutorial.WithEpoch
build-depends:
base,
containers,
hashable,
mtl,
nothunks,
ouroboros-consensus,
ouroboros-network-api,
serialise,
test-suite consensus-test
import: common-test
type: exitcode-stdio-1.0
hs-source-dirs: test/consensus-test
main-is: Main.hs
other-modules:
Test.Consensus.BlockchainTime.Simple
Test.Consensus.HardFork.Forecast
Test.Consensus.HardFork.History
Test.Consensus.HardFork.Infra
Test.Consensus.HardFork.Summary
Test.Consensus.HeaderValidation
Test.Consensus.Mempool
Test.Consensus.Mempool.Fairness
Test.Consensus.Mempool.Fairness.TestBlock
Test.Consensus.MiniProtocol.BlockFetch.Client
Test.Consensus.MiniProtocol.ChainSync.Client
Test.Consensus.MiniProtocol.LocalStateQuery.Server
Test.Consensus.ResourceRegistry
Test.Consensus.Util.MonadSTM.NormalForm
Test.Consensus.Util.MonadSTM.RAWLock
Test.Consensus.Util.Versioned
build-depends:
QuickCheck,
async,
base,
base-deriving-via,
cardano-binary,
cardano-crypto-class,
cardano-slotting:{cardano-slotting, testlib},
cborg,
containers,
contra-tracer,
deepseq,
fs-api ^>=0.2,
generics-sop,
hashable,
io-classes,
io-sim,
mtl,
nothunks,
ouroboros-consensus,
ouroboros-network,
ouroboros-network-api,
ouroboros-network-mock,
ouroboros-network-protocols:{ouroboros-network-protocols, testlib},
quickcheck-state-machine:no-vendored-treediff,
quiet,
random,
serialise,
si-timers,
sop-core,
sop-extras,
strict-sop-core,
tasty,
tasty-hunit,
tasty-quickcheck,
time,
tree-diff,
typed-protocols ^>=0.1.1,
typed-protocols-examples,
unstable-consensus-testlib,
unstable-mock-block,
test-suite infra-test
import: common-test
type: exitcode-stdio-1.0
hs-source-dirs: test/infra-test
main-is: Main.hs
other-modules:
Ouroboros.Consensus.Util.Tests
Test.Ouroboros.Consensus.ChainGenerator.Tests
Test.Ouroboros.Consensus.ChainGenerator.Tests.Adversarial
Test.Ouroboros.Consensus.ChainGenerator.Tests.BitVector
Test.Ouroboros.Consensus.ChainGenerator.Tests.Counting
Test.Ouroboros.Consensus.ChainGenerator.Tests.Honest
Test.Ouroboros.Consensus.Util.LeakyBucket.Tests
Test.Util.ChainUpdates.Tests
Test.Util.Schedule.Tests
Test.Util.Split.Tests
build-depends:
QuickCheck,
base,
io-sim,
mtl,
ouroboros-consensus:{ouroboros-consensus, unstable-consensus-testlib},
random,
tasty,
tasty-quickcheck,
time,
unstable-consensus-testlib,
vector,
test-suite storage-test
import: common-test
type: exitcode-stdio-1.0
hs-source-dirs: test/storage-test
main-is: Main.hs
other-modules:
Test.Ouroboros.Storage
Test.Ouroboros.Storage.ChainDB
Test.Ouroboros.Storage.ChainDB.FollowerPromptness
Test.Ouroboros.Storage.ChainDB.GcSchedule
Test.Ouroboros.Storage.ChainDB.Iterator
Test.Ouroboros.Storage.ChainDB.Model
Test.Ouroboros.Storage.ChainDB.Model.Test
Test.Ouroboros.Storage.ChainDB.Paths
Test.Ouroboros.Storage.ChainDB.StateMachine
Test.Ouroboros.Storage.ChainDB.StateMachine.Utils.RunOnRepl
Test.Ouroboros.Storage.ChainDB.Unit
Test.Ouroboros.Storage.ImmutableDB
Test.Ouroboros.Storage.ImmutableDB.Mock
Test.Ouroboros.Storage.ImmutableDB.Model
Test.Ouroboros.Storage.ImmutableDB.Primary
Test.Ouroboros.Storage.ImmutableDB.StateMachine
Test.Ouroboros.Storage.LedgerDB
Test.Ouroboros.Storage.LedgerDB.DiskPolicy
Test.Ouroboros.Storage.LedgerDB.InMemory
Test.Ouroboros.Storage.LedgerDB.OnDisk
Test.Ouroboros.Storage.LedgerDB.OrphanArbitrary
Test.Ouroboros.Storage.Orphans
Test.Ouroboros.Storage.TestBlock
Test.Ouroboros.Storage.VolatileDB
Test.Ouroboros.Storage.VolatileDB.Mock
Test.Ouroboros.Storage.VolatileDB.Model
Test.Ouroboros.Storage.VolatileDB.StateMachine
build-depends:
QuickCheck,
base,
bifunctors,
binary,
bytestring,
cardano-crypto-class,
cardano-slotting:{cardano-slotting, testlib},
cborg,
containers,
contra-tracer,
fs-api ^>=0.2,
fs-sim ^>=0.2,
generics-sop,
hashable,
io-classes,
io-sim,
mtl,
nothunks,
ouroboros-consensus,
ouroboros-network-api,
ouroboros-network-mock,
pretty-show,
quickcheck-state-machine:no-vendored-treediff ^>=0.9,
random,
serialise,
tasty,
tasty-hunit,
tasty-quickcheck,
text,
time,
transformers,
tree-diff,
unstable-consensus-testlib,
vector,
benchmark mempool-bench
import: common-bench
type: exitcode-stdio-1.0
hs-source-dirs: bench/mempool-bench
main-is: Main.hs
other-modules:
Bench.Consensus.Mempool
Bench.Consensus.Mempool.TestBlock
build-depends:
aeson,
base,
bytestring,
cardano-slotting,
cassava,
containers,
contra-tracer,
deepseq,
nothunks,
ouroboros-consensus,
serialise,
tasty,
tasty-bench,
tasty-hunit,
text,
transformers,
tree-diff,
unstable-consensus-testlib,
unstable-mempool-test-utils,
with-utf8,
benchmark ChainSync-client-bench
import: common-bench
type: exitcode-stdio-1.0
hs-source-dirs: bench/ChainSync-client-bench
main-is: Main.hs
other-modules: Bench.Consensus.ChainSyncClient.Driver
build-depends:
array,
base,
cardano-crypto-class,
containers,
contra-tracer,
ouroboros-consensus,
ouroboros-network-api,
ouroboros-network-protocols,
time,
typed-protocols-examples,
unstable-consensus-testlib,
with-utf8,
test-suite doctest
import: common-test
main-is: doctest.hs
type: exitcode-stdio-1.0
hs-source-dirs: test
default-language: Haskell2010
ghc-options: -Wno-unused-packages
build-depends:
base,
latex-svg-image,