/
ouroboros-consensus.cabal
532 lines (512 loc) · 23 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
name: ouroboros-consensus
version: 0.1.0.0
synopsis: Consensus layer for the Ouroboros blockchain protocol
-- description:
license: Apache-2.0
license-files:
LICENSE
NOTICE
copyright: 2019 Input Output (Hong Kong) Ltd.
author: IOHK Engineering Team
maintainer: operations@iohk.io
category: Network
build-type: Simple
cabal-version: >=1.10
source-repository head
type: git
location: https://github.com/input-output-hk/ouroboros-network
flag asserts
description: Enable assertions
manual: False
default: False
library
hs-source-dirs: src
if os(windows)
hs-source-dirs: src-win32/
else
hs-source-dirs: src-unix/
exposed-modules:
Ouroboros.Consensus.Block
Ouroboros.Consensus.BlockFetchServer
Ouroboros.Consensus.BlockchainTime
Ouroboros.Consensus.BlockchainTime.API
Ouroboros.Consensus.BlockchainTime.Mock
Ouroboros.Consensus.BlockchainTime.SlotLength
Ouroboros.Consensus.BlockchainTime.SlotLengths
Ouroboros.Consensus.BlockchainTime.WallClock
Ouroboros.Consensus.ChainSyncClient
Ouroboros.Consensus.ChainSyncServer
Ouroboros.Consensus.Crypto.DSIGN.Cardano
Ouroboros.Consensus.HeaderValidation
Ouroboros.Consensus.Ledger.Abstract
Ouroboros.Consensus.Ledger.Byron
Ouroboros.Consensus.Ledger.Byron.Block
Ouroboros.Consensus.Ledger.Byron.Config
Ouroboros.Consensus.Ledger.Byron.ContainsGenesis
Ouroboros.Consensus.Ledger.Byron.Conversions
Ouroboros.Consensus.Ledger.Byron.DelegationHistory
Ouroboros.Consensus.Ledger.Byron.Forge
Ouroboros.Consensus.Ledger.Byron.HeaderValidation
Ouroboros.Consensus.Ledger.Byron.Integrity
Ouroboros.Consensus.Ledger.Byron.Ledger
Ouroboros.Consensus.Ledger.Byron.Mempool
Ouroboros.Consensus.Ledger.Byron.Orphans
Ouroboros.Consensus.Ledger.Byron.PBFT
Ouroboros.Consensus.Ledger.ByronSpec
Ouroboros.Consensus.Ledger.ByronSpec.Accessors
Ouroboros.Consensus.Ledger.ByronSpec.Block
Ouroboros.Consensus.Ledger.ByronSpec.Conversions
Ouroboros.Consensus.Ledger.ByronSpec.Forge
Ouroboros.Consensus.Ledger.ByronSpec.Genesis
Ouroboros.Consensus.Ledger.ByronSpec.GenTx
Ouroboros.Consensus.Ledger.ByronSpec.Ledger
Ouroboros.Consensus.Ledger.ByronSpec.Mempool
Ouroboros.Consensus.Ledger.ByronSpec.Orphans
Ouroboros.Consensus.Ledger.ByronSpec.Rules
Ouroboros.Consensus.Ledger.Dual
Ouroboros.Consensus.Ledger.Dual.Byron
Ouroboros.Consensus.Ledger.Extended
Ouroboros.Consensus.Ledger.Mock
Ouroboros.Consensus.Ledger.Mock.Address
Ouroboros.Consensus.Ledger.Mock.Block
Ouroboros.Consensus.Ledger.Mock.Block.BFT
Ouroboros.Consensus.Ledger.Mock.Block.PBFT
Ouroboros.Consensus.Ledger.Mock.Block.Praos
Ouroboros.Consensus.Ledger.Mock.Block.PraosRule
Ouroboros.Consensus.Ledger.Mock.Forge
Ouroboros.Consensus.Ledger.Mock.Run
Ouroboros.Consensus.Ledger.Mock.Stake
Ouroboros.Consensus.Ledger.Mock.State
Ouroboros.Consensus.Ledger.Mock.UTxO
Ouroboros.Consensus.LocalStateQueryServer
Ouroboros.Consensus.Mempool
Ouroboros.Consensus.Mempool.API
Ouroboros.Consensus.Mempool.Impl
Ouroboros.Consensus.Mempool.TxSeq
Ouroboros.Consensus.Node
Ouroboros.Consensus.Node.DbMarker
Ouroboros.Consensus.Node.ErrorPolicy
Ouroboros.Consensus.Node.Exit
Ouroboros.Consensus.Node.ProtocolInfo
Ouroboros.Consensus.Node.ProtocolInfo.Abstract
Ouroboros.Consensus.Node.ProtocolInfo.Byron
Ouroboros.Consensus.Node.ProtocolInfo.Mock.BFT
Ouroboros.Consensus.Node.ProtocolInfo.Mock.PBFT
Ouroboros.Consensus.Node.ProtocolInfo.Mock.Praos
Ouroboros.Consensus.Node.ProtocolInfo.Mock.PraosRule
Ouroboros.Consensus.Node.Recovery
Ouroboros.Consensus.Node.Run
Ouroboros.Consensus.Node.Run.Abstract
Ouroboros.Consensus.Node.Run.Byron
Ouroboros.Consensus.Node.Run.DualByron
Ouroboros.Consensus.Node.Run.Mock
Ouroboros.Consensus.Node.Tracers
Ouroboros.Consensus.NodeId
Ouroboros.Consensus.NodeKernel
Ouroboros.Consensus.NodeNetwork
Ouroboros.Consensus.Protocol
Ouroboros.Consensus.Protocol.Abstract
Ouroboros.Consensus.Protocol.BFT
Ouroboros.Consensus.Protocol.ExtConfig
Ouroboros.Consensus.Protocol.LeaderSchedule
Ouroboros.Consensus.Protocol.MockChainSel
Ouroboros.Consensus.Protocol.ModChainSel
Ouroboros.Consensus.Protocol.PBFT
Ouroboros.Consensus.Protocol.PBFT.ChainState
Ouroboros.Consensus.Protocol.PBFT.ChainState.HeaderHashBytes
Ouroboros.Consensus.Protocol.PBFT.Crypto
Ouroboros.Consensus.Protocol.Praos
Ouroboros.Consensus.Protocol.Signed
Ouroboros.Consensus.TxSubmission
Ouroboros.Consensus.Util
Ouroboros.Consensus.Util.AnchoredFragment
Ouroboros.Consensus.Util.CBOR
Ouroboros.Consensus.Util.Classify
Ouroboros.Consensus.Util.Condense
Ouroboros.Consensus.Util.EarlyExit
Ouroboros.Consensus.Util.HList
Ouroboros.Consensus.Util.IOLike
Ouroboros.Consensus.Util.MonadSTM.NormalForm
Ouroboros.Consensus.Util.MonadSTM.StrictMVar
Ouroboros.Consensus.Util.Orphans
Ouroboros.Consensus.Util.Random
Ouroboros.Consensus.Util.RedundantConstraints
Ouroboros.Consensus.Util.ResourceRegistry
Ouroboros.Consensus.Util.Singletons
Ouroboros.Consensus.Util.STM
Ouroboros.Consensus.Util.TraceSize
Ouroboros.Consensus.Util.Versioned
-- Storing things on disk
Ouroboros.Storage.Common
Ouroboros.Storage.ChainDB
Ouroboros.Storage.ChainDB.API
Ouroboros.Storage.ChainDB.Impl
Ouroboros.Storage.ChainDB.Impl.Args
Ouroboros.Storage.ChainDB.Impl.Background
Ouroboros.Storage.ChainDB.Impl.BlockCache
Ouroboros.Storage.ChainDB.Impl.BlockComponent
Ouroboros.Storage.ChainDB.Impl.ChainSel
Ouroboros.Storage.ChainDB.Impl.ImmDB
Ouroboros.Storage.ChainDB.Impl.Iterator
Ouroboros.Storage.ChainDB.Impl.LedgerCursor
Ouroboros.Storage.ChainDB.Impl.LgrDB
Ouroboros.Storage.ChainDB.Impl.Query
Ouroboros.Storage.ChainDB.Impl.Reader
Ouroboros.Storage.ChainDB.Impl.Reopen
Ouroboros.Storage.ChainDB.Impl.Types
Ouroboros.Storage.ChainDB.Impl.VolDB
Ouroboros.Storage.EpochInfo
Ouroboros.Storage.EpochInfo.API
Ouroboros.Storage.EpochInfo.CumulEpochSizes
Ouroboros.Storage.EpochInfo.Impl
Ouroboros.Storage.FS.API
Ouroboros.Storage.FS.API.Types
Ouroboros.Storage.FS.CRC
Ouroboros.Storage.FS.Handle
Ouroboros.Storage.FS.IO
Ouroboros.Storage.ImmutableDB
Ouroboros.Storage.ImmutableDB.API
Ouroboros.Storage.ImmutableDB.Impl
Ouroboros.Storage.ImmutableDB.Impl.Index
Ouroboros.Storage.ImmutableDB.Impl.Index.Cache
Ouroboros.Storage.ImmutableDB.Impl.Index.Primary
Ouroboros.Storage.ImmutableDB.Impl.Index.Secondary
Ouroboros.Storage.ImmutableDB.Impl.Iterator
Ouroboros.Storage.ImmutableDB.Impl.State
Ouroboros.Storage.ImmutableDB.Impl.Util
Ouroboros.Storage.ImmutableDB.Impl.Validation
Ouroboros.Storage.ImmutableDB.Layout
Ouroboros.Storage.ImmutableDB.Parser
Ouroboros.Storage.ImmutableDB.Types
Ouroboros.Storage.IO
Ouroboros.Storage.LedgerDB.Conf
Ouroboros.Storage.LedgerDB.DiskPolicy
Ouroboros.Storage.LedgerDB.InMemory
Ouroboros.Storage.LedgerDB.OnDisk
Ouroboros.Storage.Util.ErrorHandling
Ouroboros.Storage.VolatileDB
Ouroboros.Storage.VolatileDB.API
Ouroboros.Storage.VolatileDB.FileInfo
Ouroboros.Storage.VolatileDB.Impl
Ouroboros.Storage.VolatileDB.Index
Ouroboros.Storage.VolatileDB.Types
Ouroboros.Storage.VolatileDB.Util
default-language: Haskell2010
other-extensions:
BangPatterns
ConstraintKinds
DataKinds
DeriveAnyClass
DeriveFunctor
DeriveGeneric
EmptyDataDecls
FlexibleContexts
FlexibleInstances
FunctionalDependencies
GADTs
GeneralizedNewtypeDeriving
KindSignatures
LambdaCase
MultiParamTypeClasses
NamedFieldPuns
OverloadedStrings
PackageImports
PolyKinds
RankNTypes
RecordWildCards
ScopedTypeVariables
StandaloneDeriving
TemplateHaskell
TupleSections
TypeApplications
TypeFamilies
TypeFamilyDependencies
TypeInType
TypeOperators
UndecidableInstances
UndecidableSuperClasses
ViewPatterns
build-depends: base >=4.9 && <4.13,
network-mux,
typed-protocols,
ouroboros-network-framework,
ouroboros-network,
io-sim-classes,
contra-tracer,
bifunctors,
bimap >=0.3 && <0.5,
binary >=0.8 && <0.9,
bytestring >=0.10 && <0.11,
cardano-binary,
cardano-crypto-class,
cardano-crypto-wrapper,
cardano-ledger,
cardano-ledger-test,
cardano-prelude,
cardano-slotting,
cborg >=0.2.2 && <0.3,
containers >=0.5 && <0.7,
cryptonite >=0.25 && <0.26,
cs-blockchain,
cs-ledger,
deepseq,
digest,
directory >=1.3 && <1.4,
filelock,
filepath >=1.4 && <1.5,
fingertree >=0.1.4.2 && <0.2,
formatting >=6.3 && <6.4,
hashable,
memory,
mmorph >=1.1 && <1.2,
mtl >=2.2 && <2.3,
network >=3.1 && <3.2,
psqueues >=0.2.3 && <0.3,
serialise >=0.2 && <0.3,
small-steps,
stm,
streaming,
text >=1.2 && <1.3,
time,
transformers,
vector >=0.12 && <0.13
if os(windows)
build-depends: Win32 >= 2.6.2.0
else
build-depends: unix
, unix-bytestring
ghc-options: -Wall
-Wno-unticked-promoted-constructors
if flag(asserts)
ghc-options: -fno-ignore-asserts
test-suite test-consensus
type: exitcode-stdio-1.0
hs-source-dirs: test-consensus test-util
default-language: Haskell2010
main-is: Main.hs
other-modules:
Test.Consensus.BlockchainTime.SlotLengths
Test.Consensus.BlockchainTime.WallClock
Test.Consensus.ChainSyncClient
Test.Consensus.Ledger.Byron
Test.Consensus.Ledger.Mock
Test.Consensus.LocalStateQueryServer
Test.Consensus.Mempool
Test.Consensus.Node
Test.Consensus.Protocol.PBFT
Test.Consensus.ResourceRegistry
Test.Consensus.Util.Versioned
Test.ThreadNet.BFT
Test.ThreadNet.DualPBFT
Test.ThreadNet.General
Test.ThreadNet.LeaderSchedule
Test.ThreadNet.Network
Test.ThreadNet.PBFT
Test.ThreadNet.Praos
Test.ThreadNet.RealPBFT
Test.ThreadNet.Ref.RealPBFT
Test.ThreadNet.TxGen
Test.ThreadNet.Util
Test.ThreadNet.Util.Expectations
Test.ThreadNet.Util.NodeJoinPlan
Test.ThreadNet.Util.NodeTopology
Test.ThreadNet.Util.NodeRestarts
Test.ThreadNet.Util.Tests
Test.Util.BlockchainTime
Test.Util.FS.Sim.FsTree
Test.Util.FS.Sim.MockFS
Test.Util.FS.Sim.STM
Test.Util.HasCreator
Test.Util.MockChain
Test.Util.Orphans.Arbitrary
Test.Util.Orphans.IOLike
Test.Util.Orphans.NoUnexpectedThunks
Test.Util.QSM
Test.Util.QuickCheck
Test.Util.Range
Test.Util.SOP
Test.Util.Shrink
Test.Util.Split
Test.Util.Stream
Test.Util.TestBlock
Test.Util.Tracer
build-depends: base,
base16-bytestring,
binary,
bytestring,
cardano-binary,
cardano-crypto-class,
cardano-crypto-test,
cardano-crypto-wrapper,
cardano-ledger,
cardano-ledger-test,
cardano-prelude,
cardano-slotting,
typed-protocols,
network-mux,
ouroboros-network,
ouroboros-consensus,
io-sim-classes,
io-sim,
-- Needed for the dual ledger
cs-blockchain,
cs-ledger,
small-steps,
hedgehog,
hedgehog-quickcheck,
binary-search,
cborg,
containers,
contra-tracer,
cryptonite,
deepseq,
directory,
fgl,
filepath,
fingertree,
generics-sop,
graphviz,
hedgehog-quickcheck,
mtl,
QuickCheck,
quickcheck-state-machine,
random,
serialise,
tasty,
tasty-golden,
tasty-hunit,
tasty-quickcheck,
temporary,
text,
time,
transformers,
tree-diff
ghc-options: -Wall
-fno-ignore-asserts
-threaded
-rtsopts
test-suite test-storage
type: exitcode-stdio-1.0
hs-source-dirs: test-storage test-util
default-language: Haskell2010
main-is: Main.hs
other-modules:
Test.Ouroboros.Storage
Test.Ouroboros.Storage.ChainDB
Test.Ouroboros.Storage.ChainDB.AddBlock
Test.Ouroboros.Storage.ChainDB.ImmDB
Test.Ouroboros.Storage.ChainDB.Iterator
Test.Ouroboros.Storage.ChainDB.Mock
Test.Ouroboros.Storage.ChainDB.Mock.Test
Test.Ouroboros.Storage.ChainDB.Model
Test.Ouroboros.Storage.ChainDB.Model.Test
Test.Ouroboros.Storage.ChainDB.StateMachine
Test.Ouroboros.Storage.FS
Test.Ouroboros.Storage.FS.StateMachine
Test.Ouroboros.Storage.ImmutableDB
Test.Ouroboros.Storage.ImmutableDB.CumulEpochSizes
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.InMemory
Test.Ouroboros.Storage.LedgerDB.OnDisk
Test.Ouroboros.Storage.TestBlock
Test.Ouroboros.Storage.Util
Test.Ouroboros.Storage.VolatileDB
Test.Ouroboros.Storage.VolatileDB.Mock
Test.Ouroboros.Storage.VolatileDB.Model
Test.Ouroboros.Storage.VolatileDB.StateMachine
Test.Ouroboros.Storage.VolatileDB.TestBlock
Test.Util.Blob
Test.Util.FS.Sim.Error
Test.Util.FS.Sim.FsTree
Test.Util.FS.Sim.MockFS
Test.Util.FS.Sim.Pure
Test.Util.FS.Sim.STM
Test.Util.Orphans.Arbitrary
Test.Util.Orphans.IOLike
Test.Util.Orphans.NoUnexpectedThunks
Test.Util.QuickCheck
Test.Util.Range
Test.Util.RefEnv
Test.Util.SOP
Test.Util.TestBlock
Test.Util.Tracer
Test.Util.WithEq
build-depends: base,
cardano-crypto-class,
cardano-ledger,
cardano-ledger-test,
cardano-prelude,
ouroboros-network,
ouroboros-network-testing,
ouroboros-consensus,
io-sim-classes,
io-sim,
base16-bytestring,
bifunctors,
binary,
bytestring,
cborg,
cereal,
containers,
contra-tracer,
deepseq,
directory,
fingertree,
generics-sop,
hashable,
mtl,
pretty-show,
QuickCheck,
quickcheck-state-machine >=0.6.0,
random,
serialise,
tasty,
tasty-hunit,
tasty-quickcheck,
temporary,
text,
time,
transformers,
tree-diff
ghc-options: -Wall
-fno-ignore-asserts
executable byron-db-converter
hs-source-dirs: tools/db-convert
build-depends: base
, bytestring
, cardano-binary
, cardano-crypto-wrapper
, cardano-ledger
, containers
, contra-tracer
, directory
, mtl
, optparse-applicative
, optparse-generic
, ouroboros-consensus
, path < 0.7
, path-io
, resourcet
, streaming
, text
, time
default-language: Haskell2010
main-is: Main.hs
ghc-options: -Wall
executable analyse-db
hs-source-dirs: tools/db-analyse
main-is: Main.hs
build-depends: base
, cardano-binary
, cardano-crypto-wrapper
, cardano-ledger
, mtl
, optparse-applicative
, ouroboros-consensus
, ouroboros-network
default-language: Haskell2010
ghc-options: -Wall