ouroboros-consensus
Safe HaskellNone
LanguageHaskell2010

Test.Consensus.Genesis.Tests.Uniform

Description

Peer simulator tests based on randomly generated schedules. They share the same property stating that the immutable tip should be on the trunk of the block tree with the right age (roughly k blocks from the tip). Contrary to other tests cases (eg. long range attack), the schedules are not particularly biased towards a specific situation.

Synopsis

Documentation

data TestKey Source #

Each value of this type uniquely corresponds to a test defined in this module.

Instances

Instances details
Generic TestKey Source # 
Instance details

Defined in Test.Consensus.Genesis.Tests.Uniform

Associated Types

type Rep TestKey 
Instance details

Defined in Test.Consensus.Genesis.Tests.Uniform

type Rep TestKey = D1 ('MetaData "TestKey" "Test.Consensus.Genesis.Tests.Uniform" "ouroboros-consensus-3.0.0.0-inplace-consensus-diffusion-test" 'False) ((C1 ('MetaCons "BlockFetchLeashingAttack" 'PrefixI 'False) (U1TypeType) :+: (C1 ('MetaCons "Downtime" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "LeashingAttackStalling" 'PrefixI 'False) (U1TypeType))) :+: (C1 ('MetaCons "LeashingAttackTimeLimited" 'PrefixI 'False) (U1TypeType) :+: (C1 ('MetaCons "LOEStalling" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "ServeAdversarialBranches" 'PrefixI 'False) (U1TypeType))))

Methods

fromTestKeyRep TestKey x #

toRep TestKey x → TestKey #

Show TestKey Source # 
Instance details

Defined in Test.Consensus.Genesis.Tests.Uniform

Methods

showsPrecIntTestKeyShowS #

showTestKeyString #

showList ∷ [TestKey] → ShowS #

Eq TestKey Source # 
Instance details

Defined in Test.Consensus.Genesis.Tests.Uniform

Methods

(==)TestKeyTestKeyBool #

(/=)TestKeyTestKeyBool #

Ord TestKey Source # 
Instance details

Defined in Test.Consensus.Genesis.Tests.Uniform

Methods

compareTestKeyTestKeyOrdering #

(<)TestKeyTestKeyBool #

(<=)TestKeyTestKeyBool #

(>)TestKeyTestKeyBool #

(>=)TestKeyTestKeyBool #

maxTestKeyTestKeyTestKey #

minTestKeyTestKeyTestKey #

SmallKey TestKey Source # 
Instance details

Defined in Test.Consensus.Genesis.Tests.Uniform

Methods

allKeys ∷ [TestKey]

type Rep TestKey Source # 
Instance details

Defined in Test.Consensus.Genesis.Tests.Uniform

type Rep TestKey = D1 ('MetaData "TestKey" "Test.Consensus.Genesis.Tests.Uniform" "ouroboros-consensus-3.0.0.0-inplace-consensus-diffusion-test" 'False) ((C1 ('MetaCons "BlockFetchLeashingAttack" 'PrefixI 'False) (U1TypeType) :+: (C1 ('MetaCons "Downtime" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "LeashingAttackStalling" 'PrefixI 'False) (U1TypeType))) :+: (C1 ('MetaCons "LeashingAttackTimeLimited" 'PrefixI 'False) (U1TypeType) :+: (C1 ('MetaCons "LOEStalling" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "ServeAdversarialBranches" 'PrefixI 'False) (U1TypeType))))