Skip to content

Commit 0479001

Browse files
committed
Changes due to updating cardano-base
1 parent fb5f16f commit 0479001

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

ouroboros-network-protocols/testlib/Test/ChainGenerators.hs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,6 @@ tests = testGroup "Chain"
9797
(mapSize (min 40) prop_shrink_TestChainFork)
9898
]
9999

100-
101-
instance Arbitrary BlockNo where
102-
arbitrary = BlockNo <$>
103-
((getPositive <$> arbitrary)
104-
`suchThat`
105-
(\n -> n < maxBound - 2^(32 :: Int)))
106-
-- need some room, we're assuming we'll never wrap around 64bits
107-
108-
shrink (BlockNo n) = [ BlockNo n' | n' <- shrink n, n' > 0 ]
109-
110100
instance Arbitrary ConcreteHeaderHash where
111101
arbitrary = HeaderHash <$> arbitrary
112102

0 commit comments

Comments
 (0)