forked from IntersectMBO/ouroboros-consensus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathouroboros-consensus.cabal
More file actions
1992 lines (1895 loc) · 58.4 KB
/
ouroboros-consensus.cabal
File metadata and controls
1992 lines (1895 loc) · 58.4 KB
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
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
cabal-version: 3.0
name: ouroboros-consensus
version: 1.0.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-2026.
author: IOG Engineering Team
maintainer: operations@iohk.io
category: Network
build-type: Simple
data-files:
ouroboros-consensus-cardano/cddl/**/*.cddl
ouroboros-consensus-cardano/cddl/base.cddl
extra-doc-files:
docs/haddocks/*.svg
ouroboros-consensus-cardano/CHANGELOG.md
ouroboros-consensus-cardano/README.md
ouroboros-consensus-diffusion/CHANGELOG.md
ouroboros-consensus-protocol/CHANGELOG.md
ouroboros-consensus/CHANGELOG.md
source-repository head
type: git
location: https://github.com/IntersectMBO/ouroboros-consensus
flag asserts
description: Enable assertions
manual: False
default: False
flag expensive-invariants
description: Enable checks for expensive invariants
manual: True
default: False
common ghc-9.14
if impl(ghc >=9.14)
ghc-options:
-Wno-redundant-constraints
-Wno-pattern-namespace-specifier
common common-lib
import: ghc-9.14
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
if flag(expensive-invariants)
cpp-options: -DENABLE_EXPENSIVE_INVARIANTS
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
ghc-options: -fproc-alignment=64
common common-exe
import: common-lib
ghc-options:
-threaded
-rtsopts
"-with-rtsopts=-N -I0 -A16m"
library
import: common-lib
hs-source-dirs: ouroboros-consensus/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.SupportsPeras
Ouroboros.Consensus.Block.SupportsProtocol
Ouroboros.Consensus.Block.SupportsSanityCheck
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.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.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.NetworkVersion
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.Node.SanityCheck
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.SupportsPeras
Ouroboros.Consensus.Ledger.SupportsProtocol
Ouroboros.Consensus.Ledger.Tables
Ouroboros.Consensus.Ledger.Tables.Basics
Ouroboros.Consensus.Ledger.Tables.Combinators
Ouroboros.Consensus.Ledger.Tables.Diff
Ouroboros.Consensus.Ledger.Tables.MapKind
Ouroboros.Consensus.Ledger.Tables.Utils
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.HistoricityCheck
Ouroboros.Consensus.MiniProtocol.ChainSync.Client.InFutureCheck
Ouroboros.Consensus.MiniProtocol.ChainSync.Client.Jumping
Ouroboros.Consensus.MiniProtocol.ChainSync.Client.State
Ouroboros.Consensus.MiniProtocol.ChainSync.Server
Ouroboros.Consensus.MiniProtocol.LocalStateQuery.Server
Ouroboros.Consensus.MiniProtocol.LocalTxMonitor.Server
Ouroboros.Consensus.MiniProtocol.LocalTxSubmission.Server
Ouroboros.Consensus.MiniProtocol.ObjectDiffusion.ObjectPool.API
Ouroboros.Consensus.MiniProtocol.ObjectDiffusion.ObjectPool.PerasCert
Ouroboros.Consensus.MiniProtocol.ObjectDiffusion.ObjectPool.PerasVote
Ouroboros.Consensus.Node.GsmState
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.Peras.Params
Ouroboros.Consensus.Peras.SelectView
Ouroboros.Consensus.Peras.Vote
Ouroboros.Consensus.Peras.Vote.Aggregation
Ouroboros.Consensus.Peras.Voting.Rules
Ouroboros.Consensus.Peras.Voting.View
Ouroboros.Consensus.Peras.Weight
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.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.API
Ouroboros.Consensus.Storage.LedgerDB.Args
Ouroboros.Consensus.Storage.LedgerDB.Forker
Ouroboros.Consensus.Storage.LedgerDB.Snapshots
Ouroboros.Consensus.Storage.LedgerDB.TraceEvent
Ouroboros.Consensus.Storage.LedgerDB.V1
Ouroboros.Consensus.Storage.LedgerDB.V1.Args
Ouroboros.Consensus.Storage.LedgerDB.V1.BackingStore
Ouroboros.Consensus.Storage.LedgerDB.V1.BackingStore.API
Ouroboros.Consensus.Storage.LedgerDB.V1.BackingStore.Impl.InMemory
Ouroboros.Consensus.Storage.LedgerDB.V1.DbChangelog
Ouroboros.Consensus.Storage.LedgerDB.V1.DiffSeq
Ouroboros.Consensus.Storage.LedgerDB.V1.Forker
Ouroboros.Consensus.Storage.LedgerDB.V1.Lock
Ouroboros.Consensus.Storage.LedgerDB.V1.Snapshots
Ouroboros.Consensus.Storage.LedgerDB.V2
Ouroboros.Consensus.Storage.LedgerDB.V2.Backend
Ouroboros.Consensus.Storage.LedgerDB.V2.Forker
Ouroboros.Consensus.Storage.LedgerDB.V2.InMemory
Ouroboros.Consensus.Storage.LedgerDB.V2.LedgerSeq
Ouroboros.Consensus.Storage.PerasCertDB
Ouroboros.Consensus.Storage.PerasCertDB.API
Ouroboros.Consensus.Storage.PerasCertDB.Impl
Ouroboros.Consensus.Storage.PerasVoteDB
Ouroboros.Consensus.Storage.PerasVoteDB.API
Ouroboros.Consensus.Storage.PerasVoteDB.Impl
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.AnchoredSeq
Ouroboros.Consensus.Util.Args
Ouroboros.Consensus.Util.Assert
Ouroboros.Consensus.Util.CBOR
Ouroboros.Consensus.Util.CRC
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.IndexedMemPack
Ouroboros.Consensus.Util.LeakyBucket
Ouroboros.Consensus.Util.MonadSTM.NormalForm
Ouroboros.Consensus.Util.MonadSTM.StrictSVar
Ouroboros.Consensus.Util.NormalForm.Invariant
Ouroboros.Consensus.Util.NormalForm.StrictMVar
Ouroboros.Consensus.Util.NormalForm.StrictTVar
Ouroboros.Consensus.Util.Orphans
Ouroboros.Consensus.Util.Pred
Ouroboros.Consensus.Util.RedundantConstraints
Ouroboros.Consensus.Util.STM
Ouroboros.Consensus.Util.Time
Ouroboros.Consensus.Util.Versioned
build-depends:
FailT ^>=0.1.2,
aeson,
base >=4.14 && <4.23,
base-deriving-via,
base16-bytestring >=1.0,
bimap >=0.4 && <0.6,
binary >=0.8 && <0.11,
bytestring >=0.10 && <0.13,
cardano-binary,
cardano-crypto-class ^>=2.3,
cardano-diffusion:api,
cardano-ledger-binary ^>=1.8,
cardano-ledger-core ^>=1.19,
cardano-prelude,
cardano-slotting,
cardano-strict-containers,
cborg ^>=0.2.2,
containers >=0.5 && <0.9,
contra-tracer ^>=0.1,
deepseq,
diff-containers >=1.2,
filelock,
fingertree-rm >=1.0,
fs-api ^>=0.4,
hashable,
io-classes:{io-classes, si-timers, strict-mvar, strict-stm} ^>=1.8.0.1,
measures,
mempack,
monoid-subclasses,
mtl,
multiset ^>=0.3,
nothunks ^>=0.2 || ^>=0.3,
ouroboros-network:{api, api-tests-lib, protocols} ^>=1.1,
primitive,
psqueues ^>=0.2.3,
quiet ^>=0.2,
rawlock ^>=0.1.1,
resource-registry ^>=0.2,
semialign >=1.1,
serialise ^>=0.2,
singletons ^>=3,
small-steps ^>=1.1,
sop-core ^>=0.5,
sop-extras ^>=0.4.1,
streaming,
strict >=0.1 && <0.6,
strict-checked-vars ^>=0.2,
strict-sop-core ^>=0.1,
text >=1.2.5.0 && <2.2,
these ^>=1.2,
time,
transformers,
typed-protocols ^>=1.2,
vector ^>=0.13,
x-docspec-extra-packages:
directory
latex-svg-image
library lsm
import: common-lib
visibility: public
hs-source-dirs: ouroboros-consensus/src/ouroboros-consensus-lsm
exposed-modules:
Ouroboros.Consensus.Storage.LedgerDB.V2.LSM
build-depends:
base,
blockio,
bytestring,
containers,
contra-tracer,
filepath,
fs-api,
lsm-tree,
mempack,
mtl,
nothunks,
ouroboros-consensus,
primitive,
random,
resource-registry,
serialise,
streaming,
text,
transformers,
vector,
library lmdb
import: common-lib
visibility: public
hs-source-dirs: ouroboros-consensus/src/ouroboros-consensus-lmdb
exposed-modules:
Ouroboros.Consensus.Storage.LedgerDB.V1.BackingStore.Impl.LMDB
Ouroboros.Consensus.Storage.LedgerDB.V1.BackingStore.Impl.LMDB.Bridge
Ouroboros.Consensus.Storage.LedgerDB.V1.BackingStore.Impl.LMDB.Status
build-depends:
base,
bytestring,
cardano-lmdb >=0.4,
cardano-lmdb-simple ^>=0.8,
cardano-slotting,
containers,
contra-tracer,
directory,
filepath,
fs-api,
io-classes,
mempack,
mtl,
nothunks,
ouroboros-consensus,
rawlock,
resource-registry,
serialise,
sop-core,
streaming,
temporary,
text,
library unstable-consensus-testlib
import: common-lib
visibility: public
hs-source-dirs: ouroboros-consensus/src/unstable-consensus-testlib
exposed-modules:
Test.LedgerTables
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.Ouroboros.Consensus.Protocol
Test.Ouroboros.Consensus.QuickCheck.Extras
Test.Ouroboros.Storage.TestBlock
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.Header
Test.Util.InvertedMap
Test.Util.LedgerStateOnlyTables
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.SanityCheck
Test.Util.Schedule
Test.Util.Serialisation.CDDL
Test.Util.Serialisation.Examples
Test.Util.Serialisation.Golden
Test.Util.Serialisation.Roundtrip
Test.Util.Serialisation.SomeResult
Test.Util.Serialisation.TxWireSize
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 >=2.15,
base,
base16-bytestring,
binary,
bytestring,
cardano-binary:{cardano-binary, testlib},
cardano-crypto-class,
cardano-ledger-binary:testlib,
cardano-ledger-core,
cardano-prelude,
cardano-slotting,
cardano-slotting:testlib,
cardano-strict-containers,
cborg,
constraints,
containers,
contra-tracer,
deepseq,
directory,
file-embed,
filepath,
fs-api,
fs-sim ^>=0.4,
generics-sop,
hashable,
io-classes:{io-classes, si-timers, strict-mvar, strict-stm},
io-sim,
mempack,
mtl,
nothunks,
optparse-applicative,
ouroboros-consensus,
ouroboros-network:{api, api-tests-lib, ouroboros-network, protocols-tests-lib},
pretty-simple,
process,
quickcheck-instances,
quickcheck-state-machine:no-vendored-treediff ^>=0.10,
quiet,
random,
resource-registry,
serialise,
sop-core,
sop-extras,
strict-sop-core,
tasty,
tasty-golden,
tasty-hunit,
tasty-quickcheck >=0.11,
tasty-rerun,
template-haskell,
temporary,
text,
time,
tree-diff,
utf8-string,
vector,
with-utf8,
library unstable-mock-block
import: common-lib
visibility: public
hs-source-dirs: ouroboros-consensus/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-ledger-core,
cardano-slotting,
cborg,
containers,
deepseq,
hashable,
mempack,
mtl,
nothunks,
ouroboros-consensus,
ouroboros-network:{api, api-tests-lib},
serialise,
text,
time,
unstable-consensus-testlib,
library unstable-mempool-test-utils
import: common-lib
visibility: public
hs-source-dirs: ouroboros-consensus/src/unstable-mempool-test-utils
exposed-modules: Test.Consensus.Mempool.Mocked
build-depends:
base,
contra-tracer,
deepseq,
io-classes:strict-stm,
ouroboros-consensus,
resource-registry,
library unstable-tutorials
import: common-lib
visibility: public
hs-source-dirs: ouroboros-consensus/src/unstable-tutorials
other-modules:
Ouroboros.Consensus.Tutorial.Simple
Ouroboros.Consensus.Tutorial.WithEpoch
build-depends:
base,
cardano-ledger-core,
containers,
deepseq,
hashable,
mtl,
nothunks,
ouroboros-consensus,
ouroboros-network:api,
serialise,
test-suite consensus-test
import: common-test
type: exitcode-stdio-1.0
hs-source-dirs: ouroboros-consensus/test/consensus-test
main-is: Main.hs
other-modules:
Test.Consensus.BlockchainTime.Simple
Test.Consensus.Committee.WFALS
Test.Consensus.Committee.WFALS.Conformance
Test.Consensus.Committee.WFALS.Model
Test.Consensus.Committee.WFALS.Model.Test
Test.Consensus.HardFork.Forecast
Test.Consensus.HardFork.History
Test.Consensus.HardFork.Infra
Test.Consensus.HardFork.Summary
Test.Consensus.HeaderValidation
Test.Consensus.Ledger.Tables.Diff
Test.Consensus.Ledger.Tables.DiffSeq
Test.Consensus.Mempool
Test.Consensus.Mempool.Fairness
Test.Consensus.Mempool.Fairness.TestBlock
Test.Consensus.Mempool.StateMachine
Test.Consensus.Mempool.Util
Test.Consensus.MiniProtocol.BlockFetch.Client
Test.Consensus.MiniProtocol.ChainSync.CSJ
Test.Consensus.MiniProtocol.ChainSync.Client
Test.Consensus.MiniProtocol.LocalStateQuery.Server
Test.Consensus.Peras.Voting.Rules
Test.Consensus.Peras.WeightSnapshot
Test.Consensus.Util.MonadSTM.NormalForm
Test.Consensus.Util.Pred
Test.Consensus.Util.Versioned
build-depends:
QuickCheck,
aeson,
array,
async,
base,
base-deriving-via,
cardano-binary,
cardano-crypto-class:{cardano-crypto-class, testlib},
cardano-diffusion:api,
cardano-ledger-core:{cardano-ledger-core, testlib},
cardano-slotting:{cardano-slotting, testlib},
cardano-strict-containers,
cborg,
containers,
contra-tracer,
deepseq,
diff-containers,
file-embed,
filepath,
fingertree-rm,
fs-api,
fs-sim,
hashable,
io-classes:{io-classes, si-timers, strict-mvar, strict-stm},
io-sim,
measures,
mtl,
mwc-random,
nonempty-containers,
nothunks,
ouroboros-consensus,
ouroboros-network:{api, api-tests-lib, ouroboros-network, protocols, protocols-tests-lib},
quickcheck-classes,
quickcheck-monoid-subclasses,
quickcheck-state-machine:no-vendored-treediff,
quiet,
random,
resource-registry,
serialise,
sop-core,
sop-extras,
strict-sop-core,
tasty,
tasty-hunit,
tasty-quickcheck,
time,
transformers,
tree-diff,
typed-protocols:{examples, stateful, typed-protocols},
unstable-consensus-testlib,
unstable-mock-block,
test-suite consensus-infra-test
import: common-test
type: exitcode-stdio-1.0
hs-source-dirs: ouroboros-consensus/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,
cardano-ledger-core,
io-classes,
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: ouroboros-consensus/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.Chunks
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.Serialisation
Test.Ouroboros.Storage.LedgerDB.SnapshotPolicy
Test.Ouroboros.Storage.LedgerDB.Snapshots
Test.Ouroboros.Storage.LedgerDB.StateMachine
Test.Ouroboros.Storage.LedgerDB.StateMachine.TestBlock
Test.Ouroboros.Storage.LedgerDB.V1.BackingStore
Test.Ouroboros.Storage.LedgerDB.V1.BackingStore.Lockstep
Test.Ouroboros.Storage.LedgerDB.V1.BackingStore.Mock
Test.Ouroboros.Storage.LedgerDB.V1.DbChangelog
Test.Ouroboros.Storage.LedgerDB.V1.LMDB
Test.Ouroboros.Storage.Orphans
Test.Ouroboros.Storage.PerasCertDB
Test.Ouroboros.Storage.PerasCertDB.Model
Test.Ouroboros.Storage.PerasCertDB.StateMachine
Test.Ouroboros.Storage.PerasVoteDB
Test.Ouroboros.Storage.PerasVoteDB.Model
Test.Ouroboros.Storage.PerasVoteDB.StateMachine
Test.Ouroboros.Storage.VolatileDB
Test.Ouroboros.Storage.VolatileDB.Mock
Test.Ouroboros.Storage.VolatileDB.Model
Test.Ouroboros.Storage.VolatileDB.StateMachine
build-depends:
QuickCheck,
aeson,
base,
bifunctors,
bytestring,
cardano-binary,
cardano-crypto-class,
cardano-ledger-binary:testlib,
cardano-ledger-core:{cardano-ledger-core, testlib},
cardano-slotting:{cardano-slotting, testlib},
cardano-strict-containers,
cborg,
constraints,
containers,
contra-tracer,
deepseq,
diff-containers,
directory,
filepath,
fs-api,
fs-sim,
generics-sop,
io-classes:{io-classes, strict-mvar, strict-stm},
io-sim,
mempack,
mtl,
nothunks,
ouroboros-consensus:{lmdb, lsm, ouroboros-consensus},
ouroboros-network:{api, api-tests-lib, protocols, protocols-tests-lib},
pretty-show,
quickcheck-dynamic ^>=4,
quickcheck-lockstep ^>=0.8,
quickcheck-state-machine:no-vendored-treediff,
random,
resource-registry,
serialise,
sop-core,
tasty,
tasty-hunit,
tasty-quickcheck,
temporary,
text,
time,
transformers,
tree-diff,
unstable-consensus-testlib,
vector,
benchmark mempool-bench
import: common-bench
type: exitcode-stdio-1.0
hs-source-dirs: ouroboros-consensus/bench/mempool-bench
main-is: Main.hs
other-modules:
Bench.Consensus.Mempool
Bench.Consensus.Mempool.TestBlock
build-depends:
aeson,
base,
bytestring,
cardano-ledger-core,
cardano-slotting,
cassava,
containers,
contra-tracer,
deepseq,
mempack,
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: ouroboros-consensus/bench/ChainSync-client-bench
main-is: Main.hs
other-modules: Bench.Consensus.ChainSyncClient.Driver
build-depends:
array,
base,
cardano-crypto-class,
cardano-ledger-core,
containers,
contra-tracer,
ouroboros-consensus,
ouroboros-network:{api, api-tests-lib, protocols},
resource-registry,
time,
typed-protocols:examples,
unstable-consensus-testlib,
with-utf8,
benchmark PerasCertDB-bench
import: common-bench
type: exitcode-stdio-1.0
hs-source-dirs: ouroboros-consensus/bench/PerasCertDB-bench
main-is: Main.hs
other-modules:
build-depends:
base,
cardano-ledger-core,
ouroboros-consensus,
ouroboros-network:api,
tasty-bench,
unstable-consensus-testlib,
test-suite doctest
import: common-test
main-is: doctest.hs
type: exitcode-stdio-1.0
hs-source-dirs: ouroboros-consensus/test
default-language: Haskell2010
ghc-options: -Wno-unused-packages
build-depends:
base,
latex-svg-image,
library protocol
import: common-lib
visibility: public
hs-source-dirs: ouroboros-consensus-protocol/src/ouroboros-consensus-protocol
exposed-modules:
Ouroboros.Consensus.Protocol.Ledger.HotKey
Ouroboros.Consensus.Protocol.Ledger.Util
Ouroboros.Consensus.Protocol.Praos
Ouroboros.Consensus.Protocol.Praos.AgentClient
Ouroboros.Consensus.Protocol.Praos.Common
Ouroboros.Consensus.Protocol.Praos.Header
Ouroboros.Consensus.Protocol.Praos.VRF
Ouroboros.Consensus.Protocol.Praos.Views
Ouroboros.Consensus.Protocol.TPraos
build-depends:
Win32-network ^>=0.2,
base,
bytestring,
cardano-binary,
cardano-crypto-class:cardano-crypto-class,
cardano-ledger-binary,
cardano-ledger-core,
cardano-ledger-shelley ^>=1.18,
cardano-protocol-tpraos ^>=1.5,
cardano-slotting,
cborg,
containers,
contra-tracer,
io-classes,
io-sim,
kes-agent ^>=1.2,
kes-agent-crypto ^>=1.1,
mtl,
network ^>=3.2.7,
nothunks,
ouroboros-consensus,
ouroboros-network:{framework, tests-lib},
serialise,
text,
library unstable-protocol-testlib