|
| 1 | +{-# LANGUAGE DataKinds #-} |
1 | 2 | {-# LANGUAGE DeriveGeneric #-} |
2 | 3 | {-# LANGUAGE DerivingVia #-} |
3 | 4 | {-# LANGUAGE FlexibleContexts #-} |
@@ -69,7 +70,7 @@ import Ouroboros.Network.OrphanInstances () |
69 | 70 | import Ouroboros.Network.PeerSelection.Governor.Types |
70 | 71 | (PeerSelectionTargets (..), makePublicPeerSelectionStateVar) |
71 | 72 | import Ouroboros.Network.PeerSelection.LedgerPeers.Type |
72 | | - (LedgerPeerSnapshot (..)) |
| 73 | + (LedgerPeerSnapshot (..), LedgerPeersKind (..)) |
73 | 74 | import Ouroboros.Network.PeerSelection.PeerSharing (PeerSharing (..)) |
74 | 75 | import Ouroboros.Network.Server.RateLimiting (AcceptedConnectionsLimit (..)) |
75 | 76 | import Ouroboros.Network.Snocket (LocalAddress (..), RemoteAddress) |
@@ -569,8 +570,8 @@ mkDiffusionConfiguration |
569 | 570 | updateLedgerPeerSnapshot :: HasCallStack |
570 | 571 | => FilePath |
571 | 572 | -> STM IO (Maybe FilePath) |
572 | | - -> (Maybe LedgerPeerSnapshot -> STM IO ()) |
573 | | - -> IO (Maybe LedgerPeerSnapshot) |
| 573 | + -> (Maybe (LedgerPeerSnapshot BigLedgerPeers) -> STM IO ()) |
| 574 | + -> IO (Maybe (LedgerPeerSnapshot BigLedgerPeers)) |
574 | 575 | updateLedgerPeerSnapshot topologyDir readLedgerPeerPath writeVar = do |
575 | 576 | mPeerSnapshotFile <- atomically readLedgerPeerPath |
576 | 577 | mLedgerPeerSnapshot <- case mPeerSnapshotFile of |
@@ -604,5 +605,3 @@ data ConfigurationError = |
604 | 605 |
|
605 | 606 | instance Exception ConfigurationError where |
606 | 607 | displayException NoAddressInformation = "no ipv4 or ipv6 address specified, use --host-addr or --host-ipv6-addr" |
607 | | - |
608 | | - |
0 commit comments