Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
a38988a
ouroboros-network: removed NodeTo{Node,Client} modules
coot Oct 1, 2025
603092e
Moved ouroboros-network-protocols to ouroboros-network
coot Sep 15, 2025
95a6682
Moved ouroboros-network-framework to ouroboros-newtork:framework
coot Sep 15, 2025
83bb0d5
Moved ouroboros-network-mock to ouroboros-network:mock
coot Sep 15, 2025
5b63b4b
Reorganised ouroboros-network.cabal file
coot Sep 16, 2025
c35daad
Moved ouroboros-network-testing to ouroboros-network
coot Sep 16, 2025
deaff17
Moved ouroboros-network-api to ouroboros-newtork
coot Sep 16, 2025
4d4b522
ouroboros-network:api - moved NodeTo{Node,Client} under Cardano name …
coot Sep 16, 2025
6ba6d31
ouroboros-network:api-tests - moved NodeTo{Client,Node}.Version tests
coot Sep 16, 2025
e94acfe
ouroboros-network:api-tests - moved Test.Cardano.Network.Version
coot Sep 16, 2025
691115a
ouroboros-network:mock - moved its last module to protocols-tests-lib
coot Sep 16, 2025
dce4f9d
cardano-diffusion package
coot Sep 17, 2025
53ad925
Updated nix & GHA
coot Sep 18, 2025
ffa9063
peer-selection: reorganised exports, part 1
coot Sep 24, 2025
00af40d
peer-selection: reorganised exports, part 2
coot Sep 24, 2025
2b6ffcc
cardano-diffusion: code style improvements
coot Sep 24, 2025
e3deb7f
Various small improvements
coot Sep 25, 2025
736ff01
Added changelog
coot Sep 18, 2025
d454bad
Updated network-spec
coot Sep 18, 2025
ec3c0fb
dmq-node: renamed dmq-test component as dmq-tests
coot Sep 29, 2025
ba10a75
Removed `DuplicateRecordFields` extension
coot Sep 29, 2025
a735c42
Moved `cardano-client` package to `cardano-diffusion:subscription`
coot Sep 29, 2025
a4c977e
tx-submission: removed unused module
coot Oct 7, 2025
f7850ac
dmq-tests: increased heap limit
coot Oct 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
52 changes: 34 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,11 @@ jobs:
path: ${{ steps.setup-haskell.outputs.cabal-store }}
key: ${{ steps.cache-dependencies.outputs.cache-primary-key }}

- name: Build projects [build]
- name: Build all packages
run: cabal build all -j

# Test network packages

- name: ouroboros-network-api [test]
run: cabal run ouroboros-network-api:test

- name: ntp-client [test]
run: cabal run ntp-client:test -- +RTS -maxN2 -RTS

Expand All @@ -115,29 +112,48 @@ jobs:
# TODO: issue #4635 to enable `+RTS -N`
run: cabal run network-mux:test

- name: ourobors-network-testing [test]
run: cabal run ouroboros-network-testing:test -- +RTS -maxN2 -RTS
- name: ouroboros-network [api-tests]
run: cabal run ouroboros-network:api-tests

- name: ourobors-network [tests-lib-tests]
run: cabal run ouroboros-network:tests-lib-tests -- +RTS -maxN2 -RTS

- name: ourobors-network-framework [io-tests]
- name: ourobors-network [framework-io-tests]
# TODO: enable `+RTS -N`
run: cabal run ouroboros-network-framework:io-tests
run: cabal run ouroboros-network:framework-io-tests

- name: ourobors-network [framework-sim-tests]
if: runner.os != 'Windows'
run: cabal run ouroboros-network:framework-sim-tests -- +RTS -maxN2 -RTS

- name: ouroboros-network [protocols-tests]
run: cabal run ouroboros-network:protocols-tests -- +RTS -maxN2 -RTS

- name: ourobors-network-framework [sim-tests]
- name: ouroboros-network [ouroboros-network-io-tests]
run: cabal run ouroboros-network:ouroboros-network-io-tests -- +RTS -maxN2 -RTS

- name: ouroboros-network [ouroboros-network-sim-tests]
if: runner.os != 'Windows'
run: cabal run ouroboros-network-framework:sim-tests -- +RTS -maxN2 -RTS
run: cabal run ouroboros-network:ouroboros-network-sim-tests -- +RTS -maxN2 -RTS

- name: ouroboros-network-protocols [test]
run: cabal run ouroboros-network-protocols:test -- +RTS -maxN2 -RTS
- name: cardano-diffusion [protocols-tests]
if: runner.os != 'Windows'
run: cabal run cardano-diffusion:protocols-tests -- +RTS -maxN2 -RTS

- name: ouroboros-network [io-tests]
run: cabal run ouroboros-network:io-tests -- +RTS -maxN2 -RTS
- name: cardano-diffusion [api-tests]
if: runner.os != 'Windows'
run: cabal run cardano-diffusion:api-tests -- +RTS -maxN2 -RTS

- name: cardano-diffusion:protocols-tests
if: runner.os != 'Windows'
run: cabal run cardano-diffusion:protocols-tests -- +RTS -maxN2 -RTS

- name: ouroboros-network [sim-tests]
- name: cardano-diffusion [cardano-diffusion-sim-test]
if: runner.os != 'Windows'
run: cabal run ouroboros-network:sim-tests -- +RTS -maxN2 -RTS
run: cabal run cardano-diffusion:cardano-diffusion-sim-tests -- +RTS -maxN2 -RTS

- name: dmq-node [test]
run: cabal run dmq-node:dmq-test -- +RTS -maxN2 -RTS
- name: dmq-node [dmq-tests]
run: cabal run dmq-node:dmq-tests -- +RTS -maxN2 -RTS

# Uncomment the following back in for debugging. Remember to launch a `pwsh` from
# the tmux session to debug `pwsh` issues. And be reminded that the `/msys2` and
Expand Down
7 changes: 1 addition & 6 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,8 @@ packages: ./cardano-ping
./monoidal-synchronisation
./network-mux
./ouroboros-network
./ouroboros-network-api
./ouroboros-network-framework
./ouroboros-network-mock
./ouroboros-network-protocols
./ouroboros-network-testing
./cardano-diffusion
./ntp-client
./cardano-client
./dmq-node
./acts-generic

Expand Down
142 changes: 0 additions & 142 deletions cardano-client/CHANGELOG.md

This file was deleted.

14 changes: 0 additions & 14 deletions cardano-client/NOTICE

This file was deleted.

44 changes: 0 additions & 44 deletions cardano-client/cardano-client.cabal

This file was deleted.

5 changes: 5 additions & 0 deletions cardano-diffusion/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Revision history for cardano-diffusion

## 0.1.0.0 -- YYYY-mm-dd

* First version. Released on an unsuspecting world.
File renamed without changes.
File renamed without changes.
33 changes: 33 additions & 0 deletions cardano-diffusion/api/lib/Cardano/Network/FetchMode.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{-# LANGUAGE LambdaCase #-}

module Cardano.Network.FetchMode
( mkReadFetchMode
, ConsensusMode (..)
, LedgerStateJudgement (..)
, module Ouroboros.Network.BlockFetch.ConsensusInterface
) where

import Data.Functor ((<&>))

import Cardano.Network.ConsensusMode
import Cardano.Network.LedgerStateJudgement
import Ouroboros.Network.BlockFetch.ConsensusInterface


-- | Construct 'readFetchMode' for 'BlockFetchConsensusInterface' by branching
-- on the 'ConsensusMode'.
mkReadFetchMode
:: Functor m
=> ConsensusMode
-> m LedgerStateJudgement
-- ^ Used for 'GenesisMode'.
-> m PraosFetchMode
-- ^ Used for 'PraosMode' for backwards compatibility.
-> m FetchMode
mkReadFetchMode consensusMode getLedgerStateJudgement getFetchMode =
case consensusMode of
GenesisMode -> getLedgerStateJudgement <&> \case
YoungEnough -> PraosFetchMode FetchModeDeadline
TooOld -> FetchModeGenesis
PraosMode -> PraosFetchMode <$> getFetchMode

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}

module Cardano.Network.LedgerStateJudgement (LedgerStateJudgement (..)) where

import GHC.Generics (Generic)
import NoThunks.Class (NoThunks)

-- | Wether the node is caught up or fell too far behind the chain
data LedgerStateJudgement = YoungEnough | TooOld
deriving (Eq, Show, Generic)

instance NoThunks LedgerStateJudgement
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NamedFieldPuns #-}

module Ouroboros.Network.NodeToClient.Version
module Cardano.Network.NodeToClient.Version
( NodeToClientVersion (..)
, NodeToClientVersionData (..)
, nodeToClientCodecCBORTerm
Expand Down
Loading