Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ index-state:
, hackage.haskell.org 2024-12-10T16:20:07Z

-- Bump this if you need newer packages from CHaP
, cardano-haskell-packages 2024-11-26T16:00:26Z
, cardano-haskell-packages 2026-04-11T06:29:42Z

packages: ./cardano-ping
./monoidal-synchronisation
Expand Down
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions ouroboros-network-protocols/testlib/Test/ChainGenerators.hs
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,6 @@ tests = testGroup "Chain"
(mapSize (min 40) prop_shrink_TestChainFork)
]


instance Arbitrary BlockNo where
arbitrary = BlockNo <$>
((getPositive <$> arbitrary)
`suchThat`
(\n -> n < maxBound - 2^(32 :: Int)))
-- need some room, we're assuming we'll never wrap around 64bits

shrink (BlockNo n) = [ BlockNo n' | n' <- shrink n, n' > 0 ]

instance Arbitrary ConcreteHeaderHash where
arbitrary = HeaderHash <$> arbitrary

Expand Down
Loading