Skip to content

Commit

Permalink
Update CHaP and Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
bolt12 committed Nov 27, 2024
1 parent 26f0a57 commit 3cdb9a3
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 29 deletions.
4 changes: 2 additions & 2 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ repository cardano-haskell-packages
-- repeat the index-state for hackage to work around haskell.nix parsing limitation
index-state:
-- Bump this if you need newer packages from Hackage
, hackage.haskell.org 2024-10-24T05:58:23Z
, hackage.haskell.org 2024-11-27T13:28:14Z

-- Bump this if you need newer packages from CHaP
, cardano-haskell-packages 2024-09-26T15:16:07Z
, cardano-haskell-packages 2024-11-26T16:00:26Z

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: 5 additions & 5 deletions ouroboros-network/ouroboros-network.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ library
Cardano.Diffusion.Policies
Cardano.Network.ArgumentsExtra
Cardano.Network.LedgerPeerConsensusInterface
Cardano.Network.PeerSelection.Governor.Types
Cardano.Network.PeerSelection.Governor.Monitor
Cardano.Network.PeerSelection.Governor.PeerSelectionActions
Cardano.Network.PeerSelection.Governor.PeerSelectionState
Cardano.Network.PeerSelection.Governor.Monitor
Cardano.Network.PeerSelection.Governor.Types
Cardano.Network.PeerSelection.PeerChurnArgs
Cardano.Network.PeerSelection.Types
Cardano.Network.PublicRootPeers
Expand All @@ -88,6 +88,8 @@ library
Ouroboros.Network.NodeToNode
Ouroboros.Network.PeerSelection.Churn
Ouroboros.Network.PeerSelection.Governor
Ouroboros.Network.PeerSelection.Governor.Monitor
Ouroboros.Network.PeerSelection.Governor.Types
Ouroboros.Network.PeerSelection.LedgerPeers
Ouroboros.Network.PeerSelection.PeerMetric
Ouroboros.Network.PeerSelection.PeerSelectionActions
Expand All @@ -107,8 +109,6 @@ library
Ouroboros.Network.TxSubmission.Inbound
Ouroboros.Network.TxSubmission.Mempool.Reader
Ouroboros.Network.TxSubmission.Outbound
Ouroboros.Network.PeerSelection.Governor.Types
Ouroboros.Network.PeerSelection.Governor.Monitor

other-modules:
Ouroboros.Network.Diffusion.Utils
Expand Down Expand Up @@ -187,7 +187,7 @@ library

if !os(windows)
build-depends:
directory,
directory

if flag(asserts)
ghc-options: -fno-ignore-asserts
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{-# OPTIONS_GHC -Wno-orphans #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE TypeOperators #-}

{-# OPTIONS_GHC -Wno-orphans #-}

module Test.Ouroboros.Network.PeerSelection.Cardano.PublicRootPeers
( arbitraryCardanoPublicRootPeers
, tests
Expand Down
25 changes: 7 additions & 18 deletions ouroboros-network/src/Ouroboros/Network/Diffusion/MinimalP2P.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,14 @@
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DisambiguateRecordFields #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeOperators #-}

#if !defined(mingw32_HOST_OS)
#define POSIX
#endif

-- | This module is expected to be imported qualified (it will clash
-- with the "Ouroboros.Network.Diffusion.NonP2P").
--
Expand Down Expand Up @@ -57,15 +54,19 @@ import Ouroboros.Network.Protocol.Handshake.Codec
import Ouroboros.Network.Protocol.Handshake.Version
import Ouroboros.Network.Socket (configureSocket, configureSystemdSocket)

import Network.Mux qualified as Mx
import Ouroboros.Network.ConnectionHandler
import Ouroboros.Network.ConnectionManager.Core qualified as CM
import Ouroboros.Network.ConnectionManager.InformationChannel
(newInformationChannel)
import Ouroboros.Network.ConnectionManager.Types
import Ouroboros.Network.Diffusion.Common hiding (nullTracers)
import Ouroboros.Network.Diffusion.Configuration
import Ouroboros.Network.Diffusion.Policies (simplePeerSelectionPolicy)
import Ouroboros.Network.Diffusion.Policies qualified as Diffusion.Policies
import Ouroboros.Network.Diffusion.Utils
import Ouroboros.Network.ExitPolicy
import Ouroboros.Network.InboundGovernor qualified as IG
import Ouroboros.Network.IOManager
import Ouroboros.Network.Mux hiding (MiniProtocol (..))
import Ouroboros.Network.MuxMode
Expand All @@ -86,24 +87,12 @@ import Ouroboros.Network.PeerSelection.PeerStateActions (PeerConnectionHandle,
import Ouroboros.Network.PeerSelection.RootPeersDNS
import Ouroboros.Network.PeerSelection.RootPeersDNS.DNSActions
(DNSLookupType (..), ioDNSActions)
import Ouroboros.Network.PeerSelection.RootPeersDNS.DNSSemaphore
(newLedgerAndPublicRootDNSSemaphore)
import Ouroboros.Network.PeerSelection.State.LocalRootPeers qualified as LocalRootPeers
import Ouroboros.Network.PeerSharing (PeerSharingRegistry (..))
import Ouroboros.Network.RethrowPolicy
import Ouroboros.Network.Server2 qualified as Server
#ifdef POSIX
#endif
#ifdef POSIX
import Network.Mux qualified as Mx
import Ouroboros.Network.ConnectionManager.Core qualified as CM
import Ouroboros.Network.Diffusion.Policies (simplePeerSelectionPolicy)
import Ouroboros.Network.InboundGovernor qualified as IG
import Ouroboros.Network.PeerSelection.RootPeersDNS.DNSSemaphore
(newLedgerAndPublicRootDNSSemaphore)
#else
import Ouroboros.Network.PeerSelection.LedgerPeers.Type (LedgerPeerSnapshot,
MinBigLedgerPeersForTrustedState, UseLedgerPeers)
import Ouroboros.Network.PeerSelection.PeerMetric (PeerMetrics)
#endif

runM
:: forall m ntnFd ntnAddr ntnVersion ntnVersionData
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{-# LANGUAGE DerivingVia #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE TypeOperators #-}

Expand Down

0 comments on commit 3cdb9a3

Please sign in to comment.